Top "Laravel-4" questions

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

DB->count() returning different value from count(DB->get())

I have the simplest of queries that I'm trying to run DB::table('user_visits')->groupBy('user_id')…

laravel laravel-4 query-builder
Override HTTP header's default settings (X-FRAME-OPTIONS)

I'm working with the dev version of Laravel (4.1.*) and there is a new default configuration that I don't want : X-Frame-Options: …

laravel http-headers laravel-4 x-frame-options
How to create multilingual translated routes in Laravel

I would like to create application with many translated routes depending on selected language. I've once described it at 3 methods …

php laravel laravel-4 localization routing
Mcrypt PHP extension required on Mac OS X

I keep getting this error Mcrypt PHP extension required at the bottom after I run a composer update : Since I …

macos laravel laravel-4 mamp mcrypt
Laravel 4 - Blade Templating - How to properly Link to Route?

I want to create a resourceful link with Laravel. Normally I just use the {{ link_to_route('Yadayadayada.route', 'LinkName', $…

php html laravel laravel-4 blade
How to add classes to Laravel 4 Forms

Probably, it is a simple answer but I cannot find any documentation regarding this. I have laid out a form …

css laravel laravel-4 blade
Update without touching timestamps (Laravel)

Is it possible to update a user without touching the timestamps? I don't want to disable the timestamps completly.. grtz

php laravel laravel-4 eloquent
Preventing Laravel adding multiple records to a pivot table

I have a many to many relationship set up and working, to add an item to the cart I use: $…

php laravel laravel-4 eloquent
How is a pivot table created by Laravel?

In Laravel 4, when working with many-to-many relationships as described in the 4.2 docs, how can I actually get Laravel to create …

laravel pivot-table laravel-4 eloquent
How to reload/refresh model from database in Laravel?

In some of my tests, I have a user model I have created and I run some methods that need …

php laravel unit-testing laravel-4 eloquent