更新遷移檔(migration)並新增自動產生的Model
This commit is contained in:
32
app/Bank.php
Normal file
32
app/Bank.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
* Date: Sat, 28 Jul 2018 18:02:51 +0000.
|
||||
*/
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
/**
|
||||
* Class Bank
|
||||
*
|
||||
* @property int $ID
|
||||
* @property string $BankNum
|
||||
* @property string $BankName
|
||||
*
|
||||
* @package App
|
||||
*/
|
||||
class Bank extends Eloquent
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'Bank';
|
||||
protected $primaryKey = 'ID';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'BankNum',
|
||||
'BankName'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user