Questions tagged [laravel-6]

Laravel 6.0 is a past main version of the open-source PHP web framework created by Taylor Otwell. It was released on September 3, 2019. Use the [laravel] tag for general Laravel related questions.

Laravel 6.0 (LTS) continues the improvements made in Laravel 5.8 by introducing semantic versioning, compatibility with Laravel Vapor, improved authorization responses, job middleware, lazy collections, sub-query improvements, the extraction of frontend scaffolding to the laravel/ui Composer package, and a variety of other bug fixes and usability improvements.

What is new:

  • Semantic Versioning
  • Laravel Vapor Compatibility
  • Improved Exceptions Via Ignition
  • Improved Authorization Responses
  • Job Middleware
  • Lazy Collections
  • Eloquent Subquery Enhancements
  • Laravel UI

Resources:

1918 questions
0
votes
1 answer

I have problem but can’t find a solution for 2 days Laravel Email

I don’t understand why it throws such an error. I call the variables from the controller and not the object. Error: Facade\Ignition\Exceptions\ViewException htmlspecialchars() expects parameter 1 to be string, object given (View:…
Arthur
  • 385
  • 3
  • 13
0
votes
1 answer

Test Case with laravel Dusk showing error 'users_email_unique'

I'm getting error as on below screenshot Please help me i am trying and for this i have spend too much time but still issue no luck. I am using laravel official dusk package for front-web testing. When i am running login test case its showing error…
Ijaz Ali
  • 128
  • 9
0
votes
1 answer

Slack Notifications in Laravel - to() function not doing anything?

I am trying to send notifications to individual users with laravel 6 using the documentation here: https://laravel.com/docs/6.x/notifications#slack-notifications My from and to functions don't seem to be doing anything. // call…
Andrew Walsh
  • 35
  • 10
0
votes
1 answer

Laravel api resource with method does't work

This is my resource file: namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class Wpis extends JsonResource { public function toArray($request) { return parent::toArray($request); } public…
Yersey
  • 3
  • 2
0
votes
1 answer

Upload multiple image files using 2 input file in Laravel

I want to upload multiple images using 2 input file fields in Laravel and put that 2 files to DB with different attributes (imagepath1, imagepath2). If I try that code there both input & upload the same file like imagekitchen2 (there both change but…
0
votes
3 answers

Laravel - Change locale using Ajax

I am trying to change the language of my system using ajax but I don't know how to change the locale and make it permanent until the user decides to change again. Currently, the locale in the app.php is set to 'en' and I want to change it to 'nl'…
Rainier laan
  • 1,101
  • 5
  • 26
  • 63
0
votes
1 answer

Laravel Form: Whoops, looks like something went wrong

i'm trying to update the users email from an edit page, but when i try to include a Form field to email i get the error "Whoops, looks like something went wrong." in this one. All of the others works correctly. Here is my code: {!!…
Andre
  • 81
  • 6
0
votes
2 answers

Show form errors on error page with validation in Laravel

If the $request->SN is either invalid or empty, I get an error like the following. Trying to get property of non-object Ticket::create([ 'user_id' => Laptop::where('SN', $request->SN)->first()->user_id, 'laptop_id' => Laptop::where('SN',…
danielmz02
  • 45
  • 1
  • 5
0
votes
1 answer

Exception FatalThrowableError Class 'app\models\category' not found

I can't understand where I made a mistake. The following is the error. Symfony\Component\Debug\Exception\FatalThrowableError Class 'app\models\category' not found class homepage extends Controller { public function index() { …
0
votes
1 answer

How to validate a form field based on the data from another one? - Laravel 6

I have a form which contains the following fields: n_census (provides information about the total population from a town or city) n_participants (provides information about the number of participants in an election process according to n_census) I…
VicentGN
  • 23
  • 5
0
votes
2 answers

Many to many relations LARAVEL

I have a problem retrieving data from a third table, as you can see I have three tables: Models : id , code , title levels : id , code . title models_level : model_id,level_id I have as function : $model = model::paginate(10); $level =…
MnlLBD
  • 13
  • 5
0
votes
1 answer

Laravel 6 session() helper is not working?

I have this very simple class: middleware('auth'); } public function…
0
votes
1 answer

Trying to get property 'name' of non-object. Model relationship not working

I am getting an error message relating to my model relationship and have an identical section of my other app that works fine. I've looked through everything many times and cannot see any reason my model relationship should not work. When I try to…
Alexander
  • 270
  • 5
  • 19
0
votes
2 answers

Laravel 6 - Updating the model timestamps

After some actions inside of my Laravel 6 app, I'm trying to update my model object $last (class CurrentConditions). As you can see below, I'm trying to update update_time property to current timestamp. Except this property, I have another timestamp…
P.N.
  • 341
  • 3
  • 16
0
votes
1 answer

419 CSRF Token Mismatch after logging out and logging back in

After I log out and want to log back in I get the following error: message: "CSRF token mismatch.", exception: "Symfony\Component\HttpKernel\Exception\HttpException" I customized some parts of the LoginController so it might have something to do…
Baspa
  • 1,099
  • 1
  • 18
  • 49
1 2 3
99
100