Created
February 9, 2018 10:03
-
-
Save aasumitro/0b8a87cfc499172d0e85f78571af860c to your computer and use it in GitHub Desktop.
new model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class ModelTableTest extends Model { | |
protected $table = 'tabel_test'; | |
protected $fillable = [ | |
'id', | |
'title', | |
'body', | |
'category', | |
'tag', | |
'created_at', | |
'updated_at' | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment