新項目:DKC
php + mongodb
框架用laravel git
項目下載 命令 git clone http:://xxxxxxxxxxxxxxx.com
cd /your/workingPath git clone https://git.karnival.com.hk/donut-kids-club/admin.git cp .env.example .env // remember to change the value to fit your needs composer install php artisan key:generate php artisan migrate php artisan db:seed npm run build 中間有個地方讓我很傷心,就是剛剛開始的時候我沒有 composer install 這個是每個用到composer的項目都要運行這行命令,用來加載文件吧(可以這樣理解,反正下載了很多的東西,不然會少一個vendor的文件夾) 安裝好後吧,路由的
一般配置在web.php中 ,這個項目竟然配置在custom.php中目前我不太知道
Route::get('{applicationId}/visitor-register/create', 'Auth\VisitorRegisterController@create'); Route::resource('visitor-register', 'Auth\VisitorRegisterController')->only(['store']);
這個在寫的時候要經常看到,增刪改就不講了,new 模型來操作。