This commit is contained in:
carodej
2020-05-01 11:04:03 +02:00
parent 606c1895a9
commit b2db3755d8
17 changed files with 652 additions and 363 deletions

View File

@@ -11,6 +11,16 @@ use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\ImageManagerStatic as Image;
/**
* Check if is demo
*
* @return mixed
*/
function is_demo($user_id) {
return env('APP_DEMO', false) && $user_id === 1;
}
/**
* Get folder or file item
*