在使用: 模型:create时报错, Add [name] to fillable property to allow mass assignment on [App\AdminUser].,因为extends Authenticatable而不是app\model, 需要在 AdminUser模型中添加protected $guarded = [];//不可以注入数据字段
Every entry you add is converted into an instance of Illuminate\Console\Scheduling\Event and stored in an $events class property of the Scheduler, an Event object consists of the following: Command to run CRON Expression Timezone to be used to evalua
上一篇说了laravel用crud之index列出产品items,我们现在试着添加产品,用到CRUD的 Create 和 Store 方法,打开/app/Http/Controllers/ItemController.php定义一下create和store方法 1,添加新产品 public function create() { return view('items.create'); } 2,保存刚刚添加的产品到数据库 public function store(Request $reques
Testing Introduction Application Testing Interacting With Your Application Testing JSON APIs Sessions / Authentication Disabling Middleware Custom HTTP Requests PHPUnit Assertions Working With Databases Resetting The Database After Each Test Model Fa