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
306
votes
34 answers

Laravel: How to Get Current Route Name? (v5 ... v7)

In Laravel v4 I was able to get the current route name using... Route::currentRouteName() How can I do it in Laravel v5 and Laravel v6?
Md Rashedul Hoque Bhuiyan
  • 10,151
  • 5
  • 30
  • 42
84
votes
6 answers

"Call to undefined function str_slug()" in Laravel 6.0

I've upgraded my laravel 5.8 project to 6.0. It has upgraded successfully but when I'm trying to run the project or installing another package to my project it is giving me error named as "Call to undefined function str_slug()" in session.php. I…
Soft Technoes
  • 1,065
  • 1
  • 7
  • 18
40
votes
4 answers

After upgrading Laravel from 5.6 to 6.0, Call to undefined str_random() function not working

I have upgraded Laravel from 5.6 to 6.0. Previously, default helper functions were running fine on the controllers, but now it says "undefined." In my controller, I have used the following. $filename = str_random(12); I am getting the following…
28
votes
22 answers

auth pages not getting css in laravel

I am beginner to laravel. I have created project. And I have run following commands to it. composer require laravel/ui --dev npm install npm run dev php artisan ui vue php artisan ui vue --auth after this command I get Login and Register menus on…
ganesh
  • 416
  • 1
  • 11
  • 32
25
votes
9 answers

Artisan command "make:auth" is not defined in Laravel 6

I have a problem when creating login/auth in Laravel 6. I typed "make: auth" in the terminal and I get an error "Command" make: auth "appears not defined." Is there a solution for this?
af rizal
  • 363
  • 1
  • 3
  • 8
22
votes
11 answers

Laravel with App Engine Standard Class 'Facade\Ignition\IgnitionServiceProvider' not found

This is driving me crazy second day. I'm new to Laravel and trying to get Laravel 6 work on Google App Engine Standard. Tried: This tutorial and other ones, but it still fails to load Laravel index page What I have done: Created new Laravel…
ProgZi
  • 1,028
  • 3
  • 14
  • 25
22
votes
6 answers

Laravel: customize or extend notifications - database model

IMHO, the current Database channel for saving notifications in Laravel is really bad design: You can't use foreign key cascades on items for cleaning up notifications of a deleted item for example Searching custom attributes in the data column…
BassMHL
  • 8,523
  • 9
  • 50
  • 67
21
votes
3 answers

Lumen/Laravel 6: Call to undefined function array_except()

So my Mailable view is throwing this error - and this is all I have on my hands. It was working fine while I was on Lumen 5.8, so my guess is that it happened after upgrading to Laravel 6. Call to undefined function array_except() (View: …
pop
  • 3,464
  • 3
  • 26
  • 43
20
votes
16 answers

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) . DB_HOST set to localhost

I moved the Laravel project from localhost to server. Which I have done every step on the server. I am able to view the login page on my server. The problem is I am not able to connect with my MySQL server. My .env…
farooq
  • 1,603
  • 2
  • 17
  • 33
20
votes
10 answers

Command 'ui' is not defined in laravel 6.0

I start a new project in laravel but my composer installed a fresh version of laravel 6.0.1. Php artisan make:auth command can't work. I try many times but error can't remove composer require laravel/ui installed but when I use the second…
user12033292
17
votes
4 answers

Undefined class constant 'App\Providers\RouteServiceProvider::HOME'

After upgrading the laravel 5.8 to laravel 6.x I am getting this error: Undefined class constant 'App\Providers\RouteServiceProvider::HOME' Before upgrading the application login system was the custom. After upgrading to laravel 6.x I want to use…
15
votes
5 answers

Laravel 6 passport returns 400 Bad request on wrong credential

I use Laravel 6 passport grant password for my Vue backend. When i send right credential to oauth/token it works and returns token, but when i send wrong (email/password) it returns 400 instead of 401 with this message. { "error":…
Mojtaba Sayari
  • 475
  • 1
  • 5
  • 16
13
votes
5 answers

Laravel - Trying to access array offset of value of type int

I have an issue when I try to submit post requests to the database. The interesting thing is, that the error only occurs when I use PHP version 7.4.2. In PHP version 7.3.9 everything works fine. I am using Laravel 6.17. When is Laravel going to fix…
NKol
  • 663
  • 1
  • 9
  • 12
12
votes
2 answers

What is the difference between a json resource & resource collection? in Laravel

Can someone explain the difference between a ResourceCollection and JsonResource? In Laravel 6 docs you can generate 2 different types of resources... ResourceCollection and…
Josh
  • 305
  • 4
  • 15
11
votes
8 answers

Laravel Dusk: Facebook\WebDriver\Exception\UnknownErrorException: unknown error: net::ERR_CONNECTION_REFUSED

Running php artisan dusk get the error: Facebook\WebDriver\Exception\UnknownErrorException: unknown error: net::ERR_CONNECTION_REFUSED (Session info: headless chrome=85.0.4183.83) Versions: OS: Windows 10 v1903 build 18362.1016 Chrome:…
Trevor
  • 1,111
  • 2
  • 18
  • 30
1
2 3
99 100