摘要:        
建库,建modelphp artisan make:migration create_tags_table --create=tagsphp artisan make:model Tag加字段increments('id'); $table->string('name'); ...    阅读全文
        posted @ 2015-09-14 23:38
jzfan
阅读(391)
评论(0)
推荐(0)
            
        
        
摘要:        
一个flash消息的插件composer require laracasts/flashconfig\app.php//provider'Laracasts\Flash\FlashServiceProvider'//aliases'Flash' => 'Laracasts\Flash\Flash'...    阅读全文
        posted @ 2015-09-14 21:12
jzfan
阅读(397)
评论(0)
推荐(0)
            
        
        
摘要:        
简单的例子,更高级的插件应用在components目录控制器放入,flash是一次性的,put不是\Session::flash('flash_msg','Your article has been created!');视图显示 @if (Session::has('flash_ms...    阅读全文
        posted @ 2015-09-14 20:22
jzfan
阅读(932)
评论(0)
推荐(0)
            
        
        
摘要:        
EventServiceProvidernamespace App\Providers;class EventServiceProvider extends ServiceProvider{ protected $listen = [ 'App\Events\UserHasReg...    阅读全文
        posted @ 2015-09-14 12:02
jzfan
阅读(315)
评论(0)
推荐(0)
            
        
        
摘要:        
namespace App\Providers;class RouteServiceProvider extends ServiceProvider{ public function boot(Router $router) { parent::boot($router);...    阅读全文
        posted @ 2015-09-14 01:25
jzfan
阅读(294)
评论(0)
推荐(0)
            
        
        
摘要:        
修改数据库articles结构,添加到user表的外键,migrate:refresh public function up() { Schema::create('articles', function (Blueprint $table) { $t...    阅读全文
        posted @ 2015-09-14 00:03
jzfan
阅读(156)
评论(0)
推荐(0)
 
                    
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号