Laravel 5.1 基础教程

Laravel 基础教程(Tutorial)

Laravel基础教程,基于Laravel文档,高于Laravel文档。将Laravel文档没讲清楚,或一带而过的地方详见阐述和注解,对关键部分则深入挖掘,从而帮助初学者更好地学习Laravel框架,对Laravel开发者也有一定参考意义。

安装篇

基础篇

底层篇

数据库篇

服务篇

实战篇

新特性篇

番外篇

未完待续,学院君正在努力更新中,敬请关注。

如果你对学院君的工作表示肯定,并且学院提供的内容对你学习Laravel确实有所帮助,还望不吝打赏,以资鼓励~,点此前往打赏页面

原创辛苦,未经允许,请勿转载!
Laravel学院,致力于提供优质Laravel中文学习资源!

69 thoughts on “Laravel 5.1 基础教程

  1. yangwx says:

    学院君,我这里有个问题,我已经有一张user表了,但我这张user表里面没有id这个选项,注册后它跳转的时候报错如下:
    QueryException in Connection.php line 655:
    SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘_user.id’ in ‘where clause’ (SQL: select * from `_user` where `_user`.`id` = 0 limit 1)

    in Connection.php line 655
    at Connection->runQueryCallback(‘select * from `_user` where `_user`.`id` = ? limit 1’, array(‘0’), object(Closure)) in Connection.php line 611
    at Connection->run(‘select * from `_user` where `_user`.`id` = ? limit 1’, array(‘0’), object(Closure)) in Connection.php line 324
    at Connection->select(‘select * from `_user` where `_user`.`id` = ? limit 1’, array(‘0’), true) in Builder.php line 1431
    at Builder->runSelect() in Builder.php line 1408
    at Builder->get(array(‘*’)) in Builder.php line 477
    at Builder->getModels(array(‘*’)) in Builder.php line 234
    at Builder->get(array(‘*’)) in Builder.php line 206
    at Builder->first(array(‘*’)) in Builder.php line 87
    at Builder->find(‘0’) in EloquentUserProvider.php line 47
    at EloquentUserProvider->retrieveById(‘0’) in Guard.php line 151
    at Guard->user() in Guard.php line 112
    at Guard->check() in RedirectIfAuthenticated.php line 37
    at RedirectIfAuthenticated->handle(object(Request), object(Closure))
    at call_user_func_array(array(object(RedirectIfAuthenticated), ‘handle’), array(object(Request), object(Closure))) in Pipeline.php line 124
    at Pipeline->IlluminatePipeline{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
    at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
    at ControllerDispatcher->callWithinStack(object(AuthController), object(Route), object(Request), ‘getRegister’) in ControllerDispatcher.php line 69
    at ControllerDispatcher->dispatch(object(Route), object(Request), ‘AppHttpControllersAuthAuthController’, ‘getRegister’) in Route.php line 203
    at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
    at Route->run(object(Request)) in Router.php line 708
    at Router->IlluminateRouting{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
    at Pipeline->IlluminatePipeline{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
    at Pipeline->then(object(Closure)) in Router.php line 710
    at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 675
    at Router->dispatchToRoute(object(Request)) in Router.php line 635
    at Router->dispatch(object(Request)) in Kernel.php line 236
    at Kernel->IlluminateFoundationHttp{closure}(object(Request))
    at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139

    急!

  2. 江城子 says:

    教程很好很实用,感谢!

    有一个问题想请教学院君:

    请问将本地调试我的laravel上传到服务器,哪些文件不需要上传?
    比如:/tests、/database、/node_modules、/build以及/public/build等

    我这只是随便列举了一些,请学院君给一个权威解答,谢谢

发表评论

标记为*的字段是必填项(邮箱地址不会被公开)

你可以使用这些HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>