摘要: 事件监听 方法一: web.php Event::listen('eloquent.created: App\post',function(){ dump('A post was created'); }); Route::get('/event53',function(){ \App\post:: 阅读全文
posted @ 2017-09-03 15:54 miyaye 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 实时facade 1. 创建一个目录叫services 创建一个weibo类 http = $http; } public function publish($status){ $this http post($status); } } 创建一个Http类 阅读全文
posted @ 2017-09-03 15:22 miyaye 阅读(285) 评论(0) 推荐(0) 编辑
摘要: laravel 邮件使用markdown php artisan make:mail lessonPublished markdown="emails.published" 这个命令不仅创建了email类文件 还生成了视图文件 并把视图也写好了 return $this markdown('emai 阅读全文
posted @ 2017-09-03 15:02 miyaye 阅读(336) 评论(0) 推荐(0) 编辑
摘要: component and slot 使用: 1.component panel Hello World Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis place 阅读全文
posted @ 2017-09-03 14:46 miyaye 阅读(232) 评论(0) 推荐(0) 编辑
摘要: routes/console.php copy一个默认的 Artisan::command('hello', function () { $this comment('hello world'); }) describe('Display an inspiring quote'); 这时候命令行就可 阅读全文
posted @ 2017-09-03 11:29 miyaye 阅读(251) 评论(0) 推荐(0) 编辑