Top "Laravel-4" questions

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

How Do I Get the Query Builder to Output Its Raw SQL Query as a String?

Given the following code: DB::table('users')->get(); I want to get the raw SQL query string that …

php sql laravel laravel-4 laravel-query-builder
How to remove a package from Laravel using composer?

What is the correct way to remove a package from Laravel using composer? So far I've tried: Remove declaration from …

laravel laravel-4 package composer-php uninstallation
Laravel Redirect Back with() Message

I am trying to redirect to the previous page with a message when there is a fatal error. App::fatal(…

laravel laravel-5 laravel-4
Could not open input file: artisan

When trying to create a new laravel project, The following error appears on the CLI: Could not open input file: …

php laravel laravel-4 laravel-artisan
Add a new column to existing table in a migration

I can't figure out how to add a new column to my existing database table using the Laravel framework. I …

php laravel laravel-4 laravel-migrations
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
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: 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
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