Laravel 4.2 has the option to specify a custom view in app/config/view.php such as: This is gone in Laravel 5 at least regarding view.php. Is there a way to replicate this behavior in Laravel 5? Answer Whereas in Laravel 4.2 I would use: In Laravel 5 you can replicate the above with the following: Now in the included view, $object
Tag: laravel-5
Laravel 5 not finding css files
I’ve just installed a Laravel 5 project on MAMP and my pages are not finding the css files. This is the link to my css in my app.blade.php file: …
Laravel PHP: multiple project run at the same time [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last month. Improve this question I want to run multiple laravel frame work project at the same time.Exactly how
Laravel 5 – Method injection
How method injection works in Laravel 5(I mean implementation), can I inject parameters in custom method, not just in controller actions? Answer 1) Read this articles to know more about method injection in laravel 5 http://mattstauffer.co/blog/laravel-5.0-method-injection https://laracasts.com/series/whats-new-in-laravel-5/episodes/2 2) Here is simple implementation of method injection you can also look at function in https://github.com/laravel/framework/blob/master/src/Illuminate/Container/Container.php file for more details 3) You can
Cannot use IlluminateRoutingController as Controller because the name is already in use
I have been learning to use Laravel, watching Larcasts and using the Docs, I came across a lesson where Eloquent is being described but I’m stuck with the error: I’m very confused and have now copied the examples provided exactly but I still get the error. I am using Laravel 5, so I don’t know if there has been some
Laravel 5 how to get route action name?
I’m trying to get the current route action, but I’m not sure how to go about it. In Laravel 4 I was using Route::currentRouteAction() but now it’s a bit different. I’m trying to do Route::getActionName() in my controller but it keeps giving me method not found. Answer In Laravel 5 you should be using Method or Constructor injection. This will
Laravel seeder gives error. Class not found
I’m a newbie in Laravel and and I’m teaching myself how to authenticate from a login table. I have migrated and created the table. Now, I’m trying to seed the data into the login table, but the …
Laravel Check If Related Model Exists
I have an Eloquent model which has a related model: When I create the model, it does not necessarily have a related model. When I update it, I might add an option, or not. So I need to check if the related model exists, to either update it, or create it, respectively: Where <related_model_exists> is the code I am looking