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
6
votes
9 answers

laravel 5.7.15 419 Sorry, your session has expired. Please refresh and try again

Hello i am using laravel 5.7.15 i am facing issue
Ijaz Ahmed Bhatti
  • 736
  • 1
  • 7
  • 26
6
votes
1 answer

Retrieve related models using hasManyThrough on a pivot table - Laravel 5.7

I'm trying to retrieve related models of the same type on from a pivot table. I have 2 models, App\Models\User and App\Models\Group and a pivot model App\Pivots\GroupUser My tables are have the following…
Sam Taylor
  • 63
  • 1
  • 1
  • 4
6
votes
2 answers

Laravel 5.7 Unable to locate factory with name [default] [App\User]

What's going on with Laravel 5.7 Factories? When I run the factory on php artisan tinker it works fine. But when I use it with Unit Tests it throws an error: Unable to locate factory with name [default] [App\User] Here's my Unit…
Dexter Bengil
  • 5,995
  • 6
  • 35
  • 54
6
votes
5 answers

Misuse of shell builtins : mysqldump: Got error: 2004: "Can't create TCP/IP socket"

Starting backup... Dumping database hms... Backup failed because The dump process failed with exitcode 2 : Misuse of shell builtins : mysqldump: Got error: 2004: "Can't create TCP/IP socket (10106 "Unknown error")" when trying to connect\r\n I…
Vijay S
  • 282
  • 2
  • 7
  • 15
5
votes
4 answers

How to install Laravel 5.8

$ composer create-project --prefer-dist laravel/laravel="5.8.*" larastart it's not working and I tried some other ways too but not worked for me This is the error I am getting: Content-Length mismatch, received 188377 bytes out of the expected…
5
votes
4 answers

In Router.php line 366: Argument 1 passed to Illuminate\Routing\Router::group() must be of the type array,

I have update Laravel from v5.7 to v5.8 and now my application doesn't run. I updated it because of this issue: composer require rebing/graphql-laravel fails I solved the packages incompatibility but now Laravel crashes: $ php artisan serve In…
5
votes
1 answer

Laravel arbitary set exit status code to custom command

I am implementing the following custom command for running a background processes: namespace App\Console\Commands; use App\Model\MyModel; use Exception; use Illuminate\Console\Command; class MyCommand extends Command { /** * @var string …
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
5
votes
1 answer

Laravel show required error message when submitting the form with image and data both

About I am submitting the image with plain text using vue.js and Laravel 5.8. Error Details When I submit the data using axios, it gives validation error message that product name is required. I am submitting both name and image. Everything works…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
5
votes
4 answers

Map array values to collection of items

How would one do the following elegantly with laravel collections ? Map the values of the $baseMap as keys to the collection. The baseMap : $baseMap = [ 'name' => 'new_name', 'year' => 'new_year', ]; The collection…
Paolo_Mulder
  • 1,233
  • 1
  • 16
  • 28
5
votes
2 answers

Laravel old method not returning password values

I'm currently learning Laravel and I'm creating a register form. When the form has errors I want to repopulate the input fields with their old values. My form looks like this: @csrf
Kerwin Sneijders
  • 750
  • 13
  • 33
5
votes
2 answers

Issue while trying to pass json of translation key-value from laravel blade to vue.js

This is my translation file return [ "Key1" => "Message 1", "Key2" => "Message 2", "Key3" => "Message 3", "Key4" => "Message 4", "Key5" => "Message 5", "Key6" => "Message 6", "Key7" => "Message 7", "Key8" => "Message…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
5
votes
3 answers

Find out how much time until the current session expires in Laravel 5.7?

Is there a way in Laravel 5.7 to find out how much time a user has left before their current session expires? EDITED I also want to check when the current session expires for guests as well as logged in users. Also, in the current answers, there…
alexmcfarlane
  • 1,016
  • 2
  • 13
  • 33
5
votes
2 answers

Laravel jobs (database) do not execute handle

I have a problem with laravel jobs. I configured laravel jobs to work with the database and it is working. When I execute a job, the entry is created in database and the constructor is well executed. However, the handle function is never executed…
tom1337
  • 228
  • 3
  • 11
5
votes
2 answers

Storage link is not included when doing a Git push Laravel

I just have done a git push in our online repo When I checked the online repo and checked the public folder it shows this: while in my local repo I have this in my public folder: My local has Storage folder from my storage link. I am guessing that…
KiritoLyn
  • 626
  • 1
  • 10
  • 26
5
votes
1 answer

"Failed to clear cache. Make sure you have the appropriate permissions" in Laravel 5.7

I think I am facing cache issue on Laravel I have the file I kept getting View [layouts.fe.wedding-us.index] not found. I've tried clear the cache composer dumpauto Do not run Composer as root/super user! See https://getcomposer.org/root for…
code-8
  • 54,650
  • 106
  • 352
  • 604