摘要:
刚才配置了数据库链接代码之后发现怎么也连不上,是因为有两个文件 .env和.envexample文件,注意配置参数要在.env文件里面,比如我用mysql的话配置.env里 这么一段: DB_CONNECTION=mysqlDB_HOST=localhostDB_PORT=8889DB_DATABA 阅读全文
摘要:
新版的laravel框架,路由在routes 文件下面,和public同一目录。比如在web.php里如此设置:Route::get('/user','Usercontroller@index'); 则会访问到 app/http/controllers/Usercontroller.php下面的in 阅读全文
摘要:
…or create a new repository on the command line echo "# laravel" >> README.md git init git add README.md git commit -m "first commit" git remote add o 阅读全文
摘要:
➜ laravel git:(master) ✗ php artisan make:controller UserController.phpController created successfully.这样就成功创建userController.php了,默认的路径在这里:app/Http/co 阅读全文
摘要:
composer 之后的laravel没有vonder,执行一下命令即可: laravel git:(master) ✗ composer updateLoading composer repositories with package informationUpdating dependencie 阅读全文
摘要:
➜ htdocs git:(master) ✗ composer create-project laravel/laravel;Installing laravel/laravel (v5.8.17) - Installing laravel/laravel (v5.8.17): Downloadi 阅读全文