12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
-
-
- namespace App\Http\Controllers;
-
-
- abstract class AbstractController extends Controller
- {
-
- public function __construct()
- {
- header('Content-type: application/json; charset=UTF-8');
- }
-
-
-
- public function authenticate()
- {
-
-
-
-
-
- \App::abort(401, 'AUTHENTICATION_REQUIRED');
- }
-
- public function admin()
- {
-
-
-
-
-
-
-
- \App::abort(401, 'UNAUTHORIZED');
- }
-
- }
|