新项目: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 有个报错 需要忽略版本
composer install --ignore-platform-reqs 或者 composer update --ignore-platform-reqsphp artisan key:generate php artisan migrate php artisan db:seed npm run build 中间有个地方让我很伤心,就是刚刚开始的时候我没有 composer install 这个是每个用到composer的项目都要运行这行命令,用来加载文件吧(可以这样理解,反正下载了很多的东西,不然会少一个vendor的文件夹) 安装好后吧,路由的
--清除缓存 php artisan config:cache --nmp打包js npm run dev
一般配置在web.php中 ,这个项目竟然配置在custom.php中目前我不太知道
Route::get('{applicationId}/visitor-register/create', 'Auth\VisitorRegisterController@create');
Route::resource('visitor-register', 'Auth\VisitorRegisterController')->only(['store']);
这个在写的时候要经常看到,增删改就不讲了,new 模型来操作。