Get current user
For the frontend use Auth
use Auth;
$user = Auth::getUser();
echo $user->id;
for the BackendAuth use
use BackendAuth;
$user = BackendAuth::getUser();
echo $user->id;
Posted in OctoberCMS on Jun 22, 2017
For the frontend use Auth
use Auth;
$user = Auth::getUser();
echo $user->id;
for the BackendAuth use
use BackendAuth;
$user = BackendAuth::getUser();
echo $user->id;
Posted in OctoberCMS on Jun 22, 2017