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 blank white screen

My laravel site was working before, I recently upgraded to Apache 2.4 and PHP 5.5.7. Now I'm getting a white blank screen …

php apache frameworks laravel laravel-4
Convert laravel object to array

Laravel output: Array ( [0] = stdClass Object ( [ID] = 5 ) [1] = stdClass Object ( [ID] = 4 ) ) I want to convert this into normal array. Just want to …

php arrays laravel laravel-4 laravel-3
Using ng-if as a switch inside ng-repeat?

I am working on Angular app. I tried to use ng-if and switch inside ng-repeat but didn't succeed. I have …

angularjs dom laravel-4 angularjs-ng-repeat angularjs-ng-if
How can I change the size of a Bootstrap checkbox?

Wondering if its possible to change the size of checkbox as it's possible with buttons. I want it to be …

css twitter-bootstrap checkbox laravel-4 laravel-blade
How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?

I would like to make a timestamp column with a default value of CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP using …

php mysql laravel laravel-4 laravel-5
Laravel - Route::resource vs Route::controller

I read the docs on the Laravel website, Stack Overflow, and Google but still don't understand the difference between Route::…

laravel laravel-5 laravel-4
Laravel orderBy on a relationship

I am looping over all comments posted by the Author of a particular post. foreach($post->user->comments …

laravel laravel-4
Laravel Check If Related Model Exists

I have an Eloquent model which has a related model: public function option() { return $this->hasOne('RepairOption', 'repair_item_…

php laravel laravel-4 eloquent laravel-5
How to get public directory?

I am a beginner here so pardon me for this question am using return File::put($path , $data); to create …

laravel laravel-4
A JOIN With Additional Conditions Using Query Builder or Eloquent

I'm trying to add a condition using a JOIN query with Laravel Query Builder. <?php $results = DB::select(' …

laravel laravel-4 laravel-query-builder