mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-01-16 19:05:08 -05:00
22 lines
414 B
PHP
22 lines
414 B
PHP
<?php
|
|
|
|
namespace Modules\StudioPlus\Services;
|
|
|
|
use Modules\StudioPlus\Entities\StudioPlusUser;
|
|
|
|
class App
|
|
{
|
|
public static function token()
|
|
{
|
|
return cache('authToken');
|
|
}
|
|
|
|
public static function auth()
|
|
{
|
|
return StudioPlusUser::query()
|
|
->with(['channel', 'role.permissions'])
|
|
->where('id', auth()->id())
|
|
->first();
|
|
}
|
|
}
|