Top "Laravel-4" questions

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

Laravel Eloquent: Ordering results of all()

I'm stuck on a simple task. I just need to order results coming from this call $results = Project::all(); Where …

laravel laravel-4 eloquent sql-order-by
What are the Differences Between "php artisan dump-autoload" and "composer dump-autoload"?

I am pretty new to Laravel 4 and Composer. While I do Laravel 4 tutorials, I couldn't understand the difference between those …

php laravel laravel-4 laravel-artisan
Rollback one specific migration in Laravel

I want to rollback only : Rolled back: 2015_05_15_195423_alter_table_web_directories I run php artisan migrate:rollback, 3 of my migration …

laravel laravel-4 laravel-5 database-migration
How to Use Order By for Multiple Columns in Laravel 4?

I want to sort multiple columns in Laravel 4 by using the method orderBy() in Laravel Eloquent. The query will be …

php laravel laravel-4 eloquent laravel-query-builder
How Can I Remove “public/index.php” in the URL Generated Laravel?

I need to remove index.php or public/index.php from the generated URL in Laravel; commonly path is localhost/…

php .htaccess laravel laravel-4 laravel-routing
Select all from table with Laravel and Eloquent

I am using Laravel 4 to set up my first model to pull all the rows from a table called posts. …

php mysql laravel laravel-4 eloquent
Set port for php artisan.php serve

How do we set a custom port for test server? Normally when we do php artisan serve the folder gets …

laravel laravel-4 php-5.4
Displaying the Error Messages in Laravel after being Redirected from controller

How can I display the validation message in the view that is being redirected in Laravel ? Here is my function …

php laravel laravel-4 blade
How to alias a table in Laravel Eloquent queries (or using Query Builder)?

Lets say we are using Laravel's query builder: $users = DB::table('really_long_table_name') ->select('really_long_…

php laravel laravel-4 eloquent
How to delete all the rows in a table using Eloquent?

My guess was to use the following syntax: MyModel::all()->delete(); But that did not work. I'm sure …

laravel laravel-4 eloquent