2017-12-30 15:45:21 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
class PagesController extends Controller
|
|
|
|
{
|
|
|
|
public function root()
|
|
|
|
{
|
|
|
|
return view('layouts.root');
|
|
|
|
}
|
2018-06-02 08:28:28 +00:00
|
|
|
|
|
|
|
public function permissionDenied()
|
|
|
|
{
|
|
|
|
if (config('administrator.permission')) {
|
|
|
|
return redirect(url(config('administrator.uri')), 302);
|
|
|
|
}
|
|
|
|
return view('pages.permission_denied');
|
|
|
|
}
|
2017-12-30 15:45:21 +00:00
|
|
|
}
|