31 行
666 B
PHP
31 行
666 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api;
|
|
|
|
use App\Http\Controllers\Controller, Session;
|
|
use App\Http\Controllers\Api\CommonController as Common;
|
|
use Illuminate\Http\Request;
|
|
|
|
class AdminController extends Common {
|
|
private $common;
|
|
|
|
public function __construct () {
|
|
$this->common = new Common([
|
|
'guard' => 'admins',
|
|
'model' => new \App\Models\Admin,
|
|
]);
|
|
}
|
|
|
|
public function login (Request $r) {
|
|
return $this->common->login($r);
|
|
}
|
|
|
|
public function checkLogin () {
|
|
return $this->common->checkLogin();
|
|
}
|
|
|
|
public function logout () {
|
|
return $this->common->logout();
|
|
}
|
|
}
|