(Laravel) 使用artisan时遇到的问题 (更新中)
[ ]The content is recoverd from Wordpress Blog, for more details please check HERE
November 4, 2015
运行 php artisan migrate 的时候 报错(错误信息见下面) 的解决方法
报错信息如下
[IlluminateDatabaseQueryException] SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '' (SQL: create table `` (`migration` va
rchar(255) not null, `batch` int not null) default character set utf8 collate utf8\_unicode\_ci)
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''
这是因为配置里面少了 一个参数 “migrations” 的值, 加上这个参数
"migrations" => "migration"
之后问题就解决了 ~~~
执行db:seed 时,遇到问题(问题见下文)
主要错误信息:
PHP Fatal error: Class User contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (IlluminateAuthUserInterface::getRememberToken, IlluminateAuthUserInterface::setRememberToken, IlluminateAuthUserInterface::getRememberTokenName) in /home/void001/NEUP-Net-Depart/larastudy/app/models/User.php on line 26
参考这篇文章:http://laravel.com/docs/5.1/upgrade#upgrade-4.1.26
在User.php 中加入 :
public function getRememberToken()
{
return $this->remember\_token;
}
public function setRememberToken($value)
{
$this->remember\_token = $value;
}
public function getRememberTokenName()
{
return 'remember\_token';
}
再次运行php artisan db:seed 就可以了~
PHP, Web Develop C. Linux, kernel, Laravel, PHP, Python, Shell, Web, wine
Historical Comments
Post navigation ————— NEXT
[Laravel] 配置phpstorm支持laravel语法补全 PREVIOUS [Laravel] laravel目录下执行 php composer.phar install遇到的各种问题的解决 Comments are closed.
统计信息nanodesu~~~
当前在线人数 (。・ω・)ノ゙ 0
修罗酱真诚欢迎更多的朋友来我的WOWO做客哦~ Search for: Search #### Recent Posts
- Customize Your Zsh Prompt
- 将 vim 作为日常笔记本使用
- Running Arch Linux with customized kernel in QEMU
- proxychains-ng 原理解析
- 闭关三月 博客之后更新
Recent Comments
- VOID001 on 将 vim 作为日常笔记本使用
- VOID001 on 留言板
- Jim Yu on 留言板
- VOID001 on VOID
- muou333000 on 将 vim 作为日常笔记本使用
友情链接
YongHao Hu’s Blog
亿臻的知乎主页(非个人博客站点)
yungkcx’s Blog
Asm Def
Five Yellow Mice’s Blog(一个ruby&php dalao)
老K(csslayer)的另一个博客
Solomon(萌萌的Poi的自制博客~)
Farseerfc的小窩(ArchLinux TU ~ 可爱的爱呼吸酱)
Sherlock-Holo的博客~(夏狼好可爱!)
KK的博客~(前辈好OwO)
智乃酱(Frantic1048)的博客~(萌萌的智乃> <)
No Silver Bullet | LA
的博客=w=
某兔子の御用花园 | 喵兔的博客\w/
千千blog (萌千千=w
Typeblog | 彼得彼得的博客w
静静’s Blog | 好耶w
南浦月 | 乔姐姐老师的博客
初等記憶體 | 艾雨寒的博客
It’s Kiri~!! | Kiriririri 的博客
失う | Equim 酱的博客~ 是 Gopher 呢
Makito’s Notebook | 是可爱的 Android Dev Makito 呢~~ (吸吸)
灰灰,可爱的男孩纸
DuckSoft’s Blog | Ex nihilo ad astra
Leo’s Field, 一位 UW 的数学系大大!Archives
- June 2019
- February 2019
- January 2019
- August 2018
- January 2018
- November 2017
- September 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- November 2015
- October 2015
- September 2015
- August 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
Categories
- ACM Algorithm
- AI
- Android
- archlinux
- C
- DynamicProgramming
- emacs
- gcc
- golang
- GraphTheory
- hash
- Kernel
- Kernel
- Linux
- Linux_Basis
- LuaSource
- Minecraft
- Number Theory
- PHP
- Projects
- Robocode~
- Ruby
- STL
- Threads and Process
- Uncategorized
- vim
- Vocaloid
- Water
- Web Develop
- wine
- 基础网络知识
- 文章转载
- 杂七杂八
- 计算机系统原理
- 计算机网络
Tags
archlinux C C. Linux kernel Laravel linux os PHP prompt Python qemu rtmp Shell video vim Web wine zsh © 2020 | Proudly Powered by WordPress | Theme: Nisarg /* <![CDATA[ / var screenReaderText = {“expand”:”expand child menu”,”collapse”:”collapse child menu”}; / ]]> / / <![CDATA[ /EnlighterJS_Config = {“selector”:{“block”:”pre.EnlighterJSRAW”,”inline”:”code.EnlighterJSRAW”},”language”:”generic”,”theme”:”git”,”indent”:2,”hover”:”hoverEnabled”,”showLinenumbers”:true,”rawButton”:true,”infoButton”:true,”windowButton”:true,”rawcodeDoubleclick”:true,”grouping”:true,”cryptex”:{“enabled”:false,”email”:”[email protected]”}};!function(){var a=function(a){var b=”Enlighter Error: “;console.error?console.error(b+a):console.log&&console.log(b+a)};return window.addEvent?”undefined”The content is recoverd from Wordpress Blog, for more details please check HEREtypeof EnlighterJS?void a(“Javascript Resources not loaded yet!”):”undefined”The content is recoverd from Wordpress Blog, for more details please check HEREtypeof EnlighterJS_Config?void a(“Configuration not loaded yet!”):void window.addEvent(“domready”,function(){EnlighterJS.Util.Init(EnlighterJS_Config.selector.block,EnlighterJS_Config.selector.inline,EnlighterJS_Config)}):void a(“MooTools Framework not loaded yet!”)}();;/ ]]> */