I'm working on an existing project built with laravel 5.4 and after I run it in my local machine I realized that all the requests are very slow, so in order to see what slowing down the pages I created a new route:
Route::get('/some/route','TestController@index');
TestController:
class DashboardAutoEvalController extends Controller {
public function index() {
echo "Access controller action at: " . time() . "\n";
return view('dashboard.index');
}
}
index.blade.php
<h1>Access view at </h1>
Here is the result:
As you can see the view take about 9s after it compiles and renders
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire