Top "Laravel-5.4" questions

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

PHP7 : install ext-dom issue

I'm running laravel 5.4 on Ubuntu 16.04 server with PHP7. trying to install cviebrock/eloquent-sluggable package throw some error: pish@let:/home/…

laravel composer-php laravel-5.4 php-7
Laravel 5.4 create model, controller and migration in single artisan command

I can create a model and resource controller (binded to model) with the following command php artisan make:controller TodoController …

laravel laravel-5.4 laravel-artisan
Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

Migration error on Laravel 5.4 with php artisan make:auth [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key …

mysql laravel pdo laravel-5 laravel-5.4
Laravel 5.4 Specific Table Migration

Hi read all the included documentation here in https://laravel.com/docs/5.4/migrations. Is there a way on how to …

laravel migration laravel-5.4
How to validate array in Laravel?

I try to validate array POST in Laravel: $validator = Validator::make($request->all(), [ "name.*" => 'required|distinct|min:3', "…

php laravel laravel-5.4
Laravel Public url for storage files

I want to retrieve public url for all the files stored using storage::putFile('public/spares'); So, this is the …

php laravel file-upload laravel-5.4 php-7
How to validate an input field if value is not null in Laravel

I am trying to create and update users with laravel 5.4 This is the validation added for create user. It works. $…

php laravel laravel-5.4 laravel-validation
Laravel Passport token lifetime

I don't get what I'm doing wrong. I can't set token expiration time. <?php namespace App\Providers; class AuthServiceProvider …

php laravel oauth-2.0 laravel-5.4 laravel-passport
Laravel middleware with multiple roles

I've been running into some issues with Laravel's middleware. Let me tell you the basic idea of what I'm trying …

php laravel-5.4 laravel-blade laravel-middleware
Laravel 5.4 - Override API 'throttle:60,1'

I'm writing a lot of API to get and store data. I like the default throttle option: protected $middlewareGroups = [ 'api' =&…

php laravel-5.4 throttling