Top "Laravel-5" questions

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

Laravel Blade passing variable with string through @include causes error

In Laravel 5.0.27 I am including a view with with a variable and the following code: @include('layouts.article', [ 'mainTitle' => "404, …

php laravel laravel-5 blade
Format Timezone for Carbon Date

I'm trying to set the timezone for a date in a Carbon object. It works fine locally but on my …

php laravel timezone laravel-5 php-carbon
PHP code inside a Laravel 5 blade template

I have to place some PHP code inside a Laravel 5 blade template. Like below @foreach ($farmer->tasks as $task) @…

php laravel-5 laravel-blade
Laravel : Syntax error or access violation: 1055 Error

I want use WhereIn and Groupby in Same Query to fetch Result. I've tried this: $loadids=explode("#@*",$reciptdet->loading_…

php laravel laravel-5
Laravel validate decimal 0-99.99

Laravel does not have a validation for decimal, so I need a regex or other validation method to validate a …

regex validation laravel-5 decimalformat
Passing multiple parameters to controller in Laravel 5

In my application, a user has the ability to remind another user about an event invitation. To do that, I …

php laravel laravel-5 blade
Laravel 5 Installation in Ubuntu: laravel command not found

When I try to install laravel 5 in ubuntu, I am getting error like this, laravel: command not found I followed …

ubuntu laravel composer-php laravel-5
Laravel - find by custom column or fail

There's findOrFail() method which throws 404 if nothing was found, e.g.: User::findOrFail(1); How can I find an entity by …

laravel laravel-4 eloquent laravel-5
Laravel (5) - Routing to controller with optional parameters

I'd like to create a route that takes a required ID, and optional start and end dates ('Ymd'). If dates …

routing laravel-5
Reading excel file and uploading to database Laravel 5

I have this project where I should be able to upload an excel file and read the contents then upload …

excel import laravel-5 laravel-excel