I have an integration.php file which is in public/arrowchat/includes/integration.php
I was wondering how do I access the Auth class within there.
I have tried this but it doesn't seem to work.
<?php
use Auth;
function get_user_id()
{
if (Auth::guest())
{
return NULL;
} else {
return Auth::user()->id;
}
}
?>