lundi 8 février 2016

Run a command in Laravel on every page load

I want to load a command with Laravel on each page load;

$mail_count = mail::where('to_id', '=', Auth::user()->id)->where('read', '=', '0')->count('read');

What would be the best way to do this? This then needs to output the result in the master template for the page.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire