Top "Laravel-5.5" questions

Laravel 5 is the previous major version of the open-source PHP web development MVC framework created by Taylor Otwell.

How to get current user in Laravel API using Passport?

I am using passport package for Laravel API Authentication. When I post data I get error: 401 Unauthorized","error":{"error":"Unauthenticated."}. …

php laravel laravel-5.5 laravel-passport
Laravel 5.5 PHPunit Test - "A facade root has not been set."

When I do a try/catch on the DB::Connection()->getPdo();, I get the error A facade root …

laravel laravel-5 phpunit facade laravel-5.5
Laravel 5.5 Queue Dispatch Not Working

Maybe I'm not understanding on Laravel queue works, or maybe it itself is not working, my expected behaviour for Laravel …

laravel queue laravel-5.5 dispatch
Laravel Notification - Call to a member function routeNotificationFor() on string

Laravel 5.5 Controller public function sendBookingSms(){ $checkState = session()->get('checkState'); $staffs = Staff::whereIn('staffId',$checkState)->get(); foreach ($…

php email laravel-5 laravel-5.5 laravel-notification
Why is my Laravel Eloquent accessor not showing up in the response?

I have a Model Review that has a unix timestamp as 1 of it's attributes (table columns). I use 2 accessors inside …

laravel laravel-5 eloquent laravel-5.5 accessor
Using Laravel on php 7.0

I have installed Laravel 5.5 and I'm getting the same error, documentation says this: PHP >= 7.0.0 OpenSSL PHP Extension PDO PHP …

laravel laravel-5.5 php-7.0
Laravel 5.5 read a file from the local disk

I am trying to import a csv file with Laravel 5.5 from the local file location. For some reason it can't …

php laravel-5.4 laravel-5.5 laravel-request laravel-filesystem
How to set custom response for selected Request class in Laravel 5.5

I'm trying to use Laravel validation to generate custom error message, however I'm unable to find the function I should …

laravel laravel-5 laravel-5.5 laravel-request laravel-response
Laravel How to remove "api" Prefix from subdomain URL

I have created a Laravel application which is both Web application and provides REST APIs to android and iOS platforms. …

laravel laravel-5.5 laravel-routing
Laravel 5.5 add form id

I have the following: {!! Form::model($houses, ['method' => 'PATCH','route' => ['houses.update', $houses->id]]) !!} and {!! Form::open(…

forms laravel-5 laravel-5.5 laravelcollective laravel-form