完成登入畫面製作、路由調整及新增receiver控制器
This commit is contained in:
42
app/Admin.php
Normal file
42
app/Admin.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sun, 29 Jul 2018 08:54:26 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Admin
|
||||
*
|
||||
* @property string $ID
|
||||
* @property string $password
|
||||
* @property string $name
|
||||
* @property string $nick_name
|
||||
* @property string $phone_number
|
||||
* @property \Carbon\Carbon $created_at
|
||||
* @property \Carbon\Carbon $updated_at
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Admin extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'admin';
|
||||
protected $primaryKey = 'ID';
|
||||
public $incrementing = false;
|
||||
|
||||
protected $hidden = [
|
||||
'password'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'password',
|
||||
'name',
|
||||
'nick_name',
|
||||
'phone_number'
|
||||
];
|
||||
}
|
||||
13
app/Http/Controllers/ReceiverController.php
Normal file
13
app/Http/Controllers/ReceiverController.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ReceiverController extends Controller
|
||||
{
|
||||
public function login()
|
||||
{
|
||||
return view('receiver.login');
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -13,7 +14,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
Schema::defaultStringLength(191);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user