标签:
composer require illuminate/html
https://laravist.com/article/14
{{ csrf_field() }}
Article::latest()->get();
Article::oldest()->get();
protect $data=[‘$publish_at‘]
//可以把publish_at设置为Carbon对象的形式方法一(使用request对象)
php artisan make:request CreateArticleRequest
(1)规则卸载rule的return[]中
(2)使用的时候只需要把这个类引入到对象的变量前面“
(3)错误的输出
方法二(使用validate方法)
php artisan route:list
Route::resource(‘articles‘,‘ArticlesController‘);
标签:
原文地址:http://blog.csdn.net/u014451076/article/details/51348570