v0.0.2 You can now make post and store it in the database.

This commit is contained in:
Victor
2021-06-02 09:01:51 +02:00
parent dfb9103157
commit d276aed27b
11 changed files with 78 additions and 10 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace Backend\Model;
use Illuminate\Database\Eloquent\Model as Eloquent;
class Post extends Eloquent{
protected $fillable = [
'title','description'
];
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace Backend\Model;
use Illuminate\Database\Eloquent\Model as Eloquent;
class User extends Eloquent{
protected $fillable = [
'name','password','remember_token'
];
protected $hidden = [
'password'
];
}