このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/app/Http/Controllers/Api/AdminController.php

31 行
666 B
PHP
Raw 通常表示 履歴

2021-10-15 10:37:47 +09:00
<?php
namespace App\Http\Controllers\Api;
2021-10-20 10:24:11 +09:00
use App\Http\Controllers\Controller, Session;
2021-10-21 19:47:39 +09:00
use App\Http\Controllers\Api\CommonController as Common;
2021-10-15 10:37:47 +09:00
use Illuminate\Http\Request;
2021-10-21 19:47:39 +09:00
class AdminController extends Common {
private $common;
2021-10-15 10:37:47 +09:00
2021-10-21 19:47:39 +09:00
public function __construct () {
2021-10-22 00:07:12 +09:00
$this->common = new Common([
2021-10-22 11:05:19 +09:00
'guard' => 'admins',
2021-10-22 00:07:12 +09:00
'model' => new \App\Models\Admin,
]);
2021-10-21 19:47:39 +09:00
}
2021-10-15 10:37:47 +09:00
public function login (Request $r) {
2021-10-21 19:47:39 +09:00
return $this->common->login($r);
}
public function checkLogin () {
2021-10-22 00:07:12 +09:00
return $this->common->checkLogin();
}
public function logout () {
2021-10-22 00:07:12 +09:00
return $this->common->logout();
2021-10-15 10:37:47 +09:00
}
}