Questions tagged [laravel-5.7]

Laravel 5.7 is the previous stable version of the open-source PHP web framework created by Taylor Otwell. It was released on September 4, 2018. Use it in addition to the [laravel-5] tag if your question is specific to Laravel 5.7. Use the [laravel] tag for general Laravel related questions.

Laravel 5.7 is the previous stable version of Laravel 5. It was released on September 4, 2018.

What is new:

  • Email Verification
  • Guest User Gates / Policies
  • Symfony Dump Server
  • Notification Localization
  • Console Testing
  • URL Generator & Callable Syntax
  • Paginator Links
  • Filesystem Read / Write Streams

Resources:

1390 questions
182
votes
17 answers

How to get client IP address in Laravel 5+

I am trying to get the client's IP address in Laravel. It is easy to get a client's IP in PHP by using $_SERVER["REMOTE_ADDR"]. It is working fine in core PHP, but when I use the same thing in Laravel, it returns the server IP instead of the…
Amrinder Singh
  • 5,300
  • 12
  • 46
  • 88
21
votes
7 answers

Laravel Email Verification Template Location

I have been reading from the documentation about the new feature of laravel the email verification. Where can I locate the email template that is sent to the user? It does not show here:…
Renzchler
  • 321
  • 1
  • 5
  • 16
19
votes
5 answers

In Laravel 5.7 React app, getting the error: 'classProperties' isn't currently enabled

I'm very new to React.js. I installed Laravel 5.7 and swapped Vue.js scaffolding with React by running this command: php artisan preset react Now the problem is, I cannot assign anything to the state inside a component. For example if I do the…
luckyali444
  • 298
  • 3
  • 15
17
votes
2 answers

How can I clean Laravel Telescope debug log

I just installed Laravel Telescope which helps me a lot to debug the application. But at this time I want to delete all telescope data-cache and set as like fresh installation. Or is there any way to export the telescope debug log then work with a…
Nazmus Shakib
  • 802
  • 1
  • 9
  • 18
17
votes
1 answer

Laravel 5.7 check if email is verified

How I can check if the email is verified in Laravel 5.7? I think, that may be with: if(!Auth::user()->email_verified_at) { return 'Email not verified!'; } Or is there other methods?
Dumitru
  • 2,053
  • 6
  • 20
  • 45
17
votes
2 answers

Laravel 5.7 + Font Awesome

I'm trying to include the Font Awesome toolkit in Laravel 5.7. These are the steps I took: 1) Run npm install --save-dev @fortawesome/fontawesome-free 2) Check the folders in node_modules/ and everything looks OK. $fa-font-path: "../webfonts"; //…
Nico
  • 173
  • 1
  • 1
  • 6
15
votes
7 answers

Composer fails with kylekatarnls/update-helper on new homestead

I have installed a homestead on a new computer. I have pulled my code (which is working on my other computer as well as the server). My project is made in Laravel 5.7 When I do a composer require to get everything in place to, i get this error: …
SorenPeter
  • 243
  • 1
  • 4
  • 9
15
votes
2 answers

Is it possible to change/modify predefined route in Laravel Passport?

you know, Laravel Passport have predefined routes as folllow: php artisan route:list +--------+----------+-----------------------------------------+------+---------------------------------------------+--------------+ | Domain | Method | URI …
AnD
  • 3,060
  • 8
  • 35
  • 63
15
votes
6 answers

Laravel 5.7 email verification error, route [verification.verify] not defined

I am trying to implement email verification in Laravel 5.7. I have implemented MustVerifyEmail on User model. class User extends Authenticatable implements MustVerifyEmail { } But after registration I got this error Route [verification.verify]…
hezuxit
  • 151
  • 1
  • 1
  • 3
14
votes
6 answers

Php get how many days and hours left from a date

I have a created_at date saved liked this "2011-09-23 19:10:18" And I want to get the days and hours left until the date is reached. How do I do that? and column name in database remain days automatically update daily with remain days, please solve…
John123
  • 143
  • 1
  • 1
  • 4
13
votes
6 answers

How to enable both api and web guard in laravel

Laravel 5.7 PHP 7.2.10 Currently I am able to use any one of web and api guards, is there any way to allow both, so that both web app and api will work together. Something like return [ /* …
12
votes
3 answers

Laravel 5.8 How to get the job Id?

I'm trying to get the job ID inside my jobs. I try $this->job->getJobId() but it returns an empty string.
Kenneth
  • 2,813
  • 3
  • 22
  • 46
11
votes
3 answers

Laravel class access in Vue.js

I have the following class where I defined my Minimum/Maximum length values: class MinMaxValuesUser { const Min_UserName = 6; const Max_UserName = 30; } Below is the rule in request class where the min max values are used instead of…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
11
votes
3 answers

Upgrade Laravel 5.6 to 5.7

I want to upgrade Laravel to 5.7 because I need new features, but I can't find any easy way. I followed these steps:-Upgrading Laravel Version but I found an error during composer update I got this error and I also tried to solve the solution but…
Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64
10
votes
2 answers

Laravel - Python script execution

I have to execute a Python script which pulls a large amount of data to the database. It is working fine while I am running a project using the command php artisan serve, but it is throwing an error after calling the public folder URL given…
Ujjual
  • 958
  • 2
  • 10
  • 36
1
2 3
92 93