public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('title');
$table->text('content');
$table->timestamps();
});
}
Jerry 發表在 痞客邦 留言(0) 人氣(0)
public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('title');
$table->text('content');
$table->timestamps();
});
}
Jerry 發表在 痞客邦 留言(0) 人氣(475)
為什麼總是要 composer dump-autoload ?#
剛開始接觸用 composer 的時候一直被這個問題蠱惑。很不理解為什麼總是要打這句命令才能不報錯,現在終於知道根結了。
Jerry 發表在 痞客邦 留言(0) 人氣(0)
為什麼總是要 composer dump-autoload ?#
剛開始接觸用 composer 的時候一直被這個問題蠱惑。很不理解為什麼總是要打這句命令才能不報錯,現在終於知道根結了。
Jerry 發表在 痞客邦 留言(0) 人氣(7,705)
php artisan make:migration add_deleted_at_column_to_posts_tables --table=posts
Jerry 發表在 痞客邦 留言(0) 人氣(136)
php artisan make:migration add_deleted_at_column_to_posts_tables --table=posts
Jerry 發表在 痞客邦 留言(0) 人氣(0)
php artisan make:model Post
Jerry 發表在 痞客邦 留言(0) 人氣(0)
php artisan make:model Post
Jerry 發表在 痞客邦 留言(0) 人氣(2,040)
Route::get('/insert', function () {
DB::insert('insert into posts(title, content) values(?,?)',['PHP with laravel','laravel is the best thing']);
});
Jerry 發表在 痞客邦 留言(0) 人氣(444)
Route::get('/insert', function () {
DB::insert('insert into posts(title, content) values(?,?)',['PHP with laravel','laravel is the best thing']);
});
Jerry 發表在 痞客邦 留言(0) 人氣(0)