Top "Laravel" questions

Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern and based on Symfony.

Laravel 4: how to "order by" using Eloquent ORM

Simple question - how do I order by 'id' descending in Laravel 4. The relevant part of my controller looks like …

php laravel laravel-4 eloquent
Getting Current date, time , day in laravel

I need to get the current date, time, day using laravel I tried to echo $ldate = new DateTime('today'); and $…

php date laravel
How to Get the Current URL Inside @if Statement (Blade) in Laravel 4?

I am using Laravel 4. I would like to access the current URL inside an @if condition in a view using …

laravel laravel-4 laravel-blade
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 …

php laravel laravel-5 laravel-routing laravel-6
Laravel: Auth::user()->id trying to get a property of a non-object

I'm getting the following error "trying to get a property of a non-object" when I submit a form to add …

php authentication laravel laravel-4
How to fix Error: laravel.log could not be opened?

I'm pretty new at laravel, in fact and I'm trying to create my very first project. for some reason I …

php laravel
How to set up file permissions for Laravel?

I'm using Apache Web Server that has the owner set to _www:_www. I never know what is the best …

php apache laravel laravel-5 file-permissions
No Application Encryption Key Has Been Specified

I'm new to Laravel and I'm trying to use the Artisan command... php artisan serve It displays... Laravel development server …

php laravel laravel-5 laravel-5.5 laravel-artisan
file_put_contents(meta/services.json): failed to open stream: Permission denied

I am new to Laravel. I was trying to open http://localhost/test/public/ and I got Error in exception …

php exception laravel laravel-4
How to Set Variables in a Laravel Blade Template

I'm reading the Laravel Blade documentation and I can't figure out how to assign variables inside a template for use …

php laravel laravel-4 laravel-blade