Questions tagged [laravel-5.8]

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

Laravel 5.8 is the previous stable version of the open-source PHP web framework created by Taylor Otwell. It was released on February 26, 2019.

What is new:

  • Eloquent HasOneThrough Relationship
  • Auto-Discovery Of Model Policies
  • PSR-16 Cache Compliance
  • Multiple Broadcast Authentication Guards
  • Token Guard Token Hashing
  • Improved Email Validation
  • Default Scheduler Timezone
  • Intermediate Table / Pivot Model Events
  • Artisan Call Improvements
  • Mock / Spy Testing Helper Methods
  • Eloquent Resource Key Preservation
  • Higher Order orWhere Eloquent Method
  • Artisan Serve Improvements
  • Blade File Mapping
  • DynamoDB Cache / Session Drivers
  • Carbon 2.0 Support
  • Pheanstalk 4.0 Support

Resources:

1845 questions
23
votes
13 answers

Laravel 5.8 , artisan commands error : Failed to parse dotenv file due to an invalid name

This problem only happens with Laravel 5.8 on my shared hosting. It is working fine in my shared hosting with Laravel 5.7. It is working fine in my local environment with Laravel 5.8. the problem is: every time I run php artisan commands (on my…
20
votes
7 answers

Laravel 5.8 showing "419 Page Expired" after clicking logout from an already cleared session

I run the php artisan make:auth command and I will explain step by step what I do after that to understand the scenario, Login to a new session (example.com/home) opened a new tab and pasted the URL, ie example.com/home. Now 2 tabs are open with…
Sobin Augustine
  • 3,639
  • 2
  • 25
  • 43
19
votes
9 answers

Laravel Nova - Reorder left navigation menu items

In default the ordering of left menu items is in alphabetical order. My client wants to order those menus manually. Any idea how to make it possible? Go to answer
Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
15
votes
7 answers

Laravel API Routes Not Found

Im new to API and Vue. Im working on Laravel 5.8 api.php and controllers and views and it only return 404 Not Found. this is what ive tried api.php Route::group(['middleware' => 'api'], function(){ Route::resource('/dashboard/departments',…
jeesoon
  • 377
  • 1
  • 3
  • 15
14
votes
5 answers

composer require laravel/passport not working in laravel 5.8

I'm using Laravel 5.8 although 6.0.3 is available. I'm using it because the tutorial I'm following is using Laravel 5.8. When, I command: composer require laravel/passport it throws an error Your requirements could not be resolved to an…
Nazrul Islam
  • 141
  • 1
  • 1
  • 4
14
votes
4 answers

How to enable CORS in Laravel?

I am in Laravel 5.8 - I kept getting this CORS issue I've tried php artisan make:middleware Cors Add these code
code-8
  • 54,650
  • 106
  • 352
  • 604
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
12
votes
9 answers

Server error 500 when accessing Laravel 5.8

After installing laravel in blog directory, when I try to check it runs normally or not by accessing localhost/blog/public it shows 500 Server error like this screenshot : I've tried to grant apache with mod_rewrite and it didn't help. I installed…
10
votes
2 answers

Laravel 5.8 Validation Race Condition

I have this validation rule on POST request method inside a controller: class CreateOrderController extends Controller { public function create(Request $request) { $this->validate($request, [ 'store_id' =>…
10
votes
4 answers

Laravel 5.8: How to resolve auth()->user() inside Global Scope's apply method?

I need to apply specific global scope only if authenticated user's role is equal to something. So that user with certain role will only be able to execute queries on a given subset of records. I can easily deal with User model (of currently logged…
10
votes
5 answers

Laravel - No emails sending using mailgun

Server: Digital Ocean Ubuntu 16.04 Laravel 5.8 I cannot get email to send out of laravel using mailgun.com In Digital Ocean I have all outgoing ports open on the firewall, I have the correct DNS settings in Digital ocean for TXT and MX records. I…
Chad Priddle
  • 650
  • 2
  • 15
  • 32
9
votes
6 answers

How to logout with a GET request in Laravel

I am getting error when i am logout, it's showing me this error..."The GET method is not supported for this route. Supported methods: POST." Please help me to solve this issue.. Here are my code... @if(Auth::check())
  • sumit group3
    • 91
    • 1
    • 1
    • 7
    9
    votes
    3 answers

    How to Optimize Import Process for very large data for Laravel?

    I have the functionality to import a very large amount of records around 5 million. I have to make entries for related tables also simultaneously in the import process. I have to make bunch insert queries for new entries and taking care of all…
    Vivek Solanki
    • 136
    • 1
    • 13
    9
    votes
    4 answers

    The GET method is not supported for this route. Supported methods: POST. laravel 5.8 Ajax

    I am trying to understand more about how to save data from ajax request into the database on laravel, The data in this case is raw (JSON FORMATTED) data just to see how it works it works fine if I dont add this to the code (note the saving into the…
    HashtagForgotName
    • 651
    • 1
    • 7
    • 23
    9
    votes
    2 answers

    Laravel default error pages are different in server [minimal.blade vs illustrated.blade]

    I have upgraded my Laravel project from 5.6 to 5.8 (in my local before deploying to live for the first time). Both Laravel versions are 5.8.5 installed with the same composer.json In my local, the error pages (404, 503) are the illustrated…
    senty
    • 12,385
    • 28
    • 130
    • 260
    1
    2 3
    99 100