Laravel 5 Clear Views Cache
I notice that Laravel cache views are stored in ~/storage/framework/views. Over time, they get to eat up my space. How do I delete … Read more
I notice that Laravel cache views are stored in ~/storage/framework/views. Over time, they get to eat up my space. How do I delete … Read more
I’m trying to view the log for a query, but DB::getQueryLog() is just returning an empty array: $user = User::find(5); print_r(DB::getQueryLog()); Result Array … Read more
I’m using the below code to pull some results from the database with Laravel 5. BookingDates::where(’email’, Input::get(’email’))->orWhere(‘name’, ‘like’, Input::get(‘name’))->get() However, the orWhereLike doesn’t … Read more
I am trying to redirect to the previous page with a message when there is a fatal error. App::fatal(function($exception) { return Redirect::back()->with(‘msg’, ‘The … Read more
I have got user’s avatars uploaded in Laravel storage. How can I access them and render them in a view? The server is … Read more
I can create a model and resource controller (binded to model) with the following command php artisan make:controller TodoController –resource –model=Todo I want … Read more
I’m trying to create a report page that shows reports from a specific date to a specific date. Here’s my current code: $now … Read more
I have two controllers SubmitPerformanceController and PrintReportController. In PrintReportController I have a method called getPrintReport. How to access this method in SubmitPerformanceController? 15 … Read more
I would like to make a timestamp column with a default value of CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP using the Laravel Schema Builder/Migrations. I … Read more
I am working on a project in Laravel where I am storing some settings in .env file setting like few parameters for testing … Read more