1 | <?php |
||
21 | abstract class Controller extends BaseController |
||
22 | { |
||
23 | use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
||
24 | |||
25 | protected $app; |
||
26 | |||
27 | protected $scopeNamespace; |
||
28 | protected $httpNamespace; |
||
29 | protected $viewNamespace; |
||
30 | |||
31 | public function __construct() |
||
39 | |||
40 | /** |
||
41 | * Get auth user service. |
||
42 | * |
||
43 | * @param string $guard |
||
44 | * @return \Longman\Platfourm\Auth\Services\AuthUserService |
||
45 | */ |
||
46 | public function getAuthService($guard = null) |
||
51 | |||
52 | /** |
||
53 | * Get the evaluated view contents for the given view. |
||
54 | * |
||
55 | * @param string $view |
||
56 | * @param array $data |
||
57 | * @param array $mergeData |
||
58 | * @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory |
||
59 | */ |
||
60 | protected function view($view, $data = [], $mergeData = []) |
||
73 | |||
74 | /** |
||
75 | * Get an instance of the redirector. |
||
76 | * |
||
77 | * @param string|null $to |
||
78 | * @param int $status |
||
79 | * @param array $headers |
||
80 | * @param bool $secure |
||
81 | * @return \Illuminate\Routing\Redirector|\Illuminate\Http\RedirectResponse |
||
82 | */ |
||
83 | protected function redirect($to = null, $status = 302, $headers = [], $secure = null) |
||
104 | |||
105 | /** |
||
106 | * Return a new response from the application. |
||
107 | * |
||
108 | * @param string $content |
||
109 | * @param int $status |
||
110 | * @param array $headers |
||
111 | * @return \Symfony\Component\HttpFoundation\Response|\Illuminate\Contracts\Routing\ResponseFactory |
||
112 | */ |
||
113 | protected function response($content = '', $status = 200, array $headers = []) |
||
117 | } |
||
118 |