第二種安裝方式后報錯:
Warning: require(D:\xampps\htdocs\laravel02\public/../vendor/autoload.php): failed to open stream: No such file or directory in D:\xampps\htdocs\laravel02\public\index.php on line 24
Warning: require(D:\xampps\htdocs\laravel02\public/../vendor/autoload.php): failed to open stream: No such file or directory in D:\xampps\htdocs\laravel02\public\index.php on line 24
2017-10-06
創建字段時,記得刪掉原有的$table->timestamps(); 保留這個方法會默認創建created_at 和 updated_at字段,無需手動創建
2017-10-06
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (S
QL: alter table `users` add unique `users_email_unique`(`email`))
出現這個錯誤請參照1樓的做法
QL: alter table `users` add unique `users_email_unique`(`email`))
出現這個錯誤請參照1樓的做法
2017-10-06
和 NPM 很像,我是前端過來學后端,發現有些地方太相似了。
掌握命令行操作很重要,每次看我們技術老大操作命令行都是一種享受,6的飛起。
掌握命令行操作很重要,每次看我們技術老大操作命令行都是一種享受,6的飛起。
2017-10-05
composer config -g repo.packagist
找不到啊
[InvalidArgumentException]
There is no packagist repository defined
config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]...
顯示了這些
找不到啊
[InvalidArgumentException]
There is no packagist repository defined
config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]...
顯示了這些
2017-10-02
php artisan make:controller IndexConroller
[RuntimeException]
Unable to detect application namespace.
[RuntimeException]
Unable to detect application namespace.
2017-09-28