dimanche 11 octobre 2015

Perform database save after Response in Laravel 5

I'd like to not hold up the client with a database save and so I'd like to do something like what is shown for Laravel 4, see below but just on one specific controller.

App::shutdown(function($request, $response)
{
    //
    App\SearchLog::create($request->all());

});



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire