Learning Laravelguide on this topic remarks to know more about how to contribute and the style guide that we made to make sure we can give the best experience towards people that want to learn more about Laravel. More you often here! Starter Guide Starter guide is custom navigation that we ordered by ourselves to make topic browsing easier especially for beginner. This navigation is ordered by level of difficulty First, download the Laravel installer using Composer: composer global require "laravel/installer" Make sure to place the $HOME/.composer/vendor/bin directory (or the equivalent directory for your OS)0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 3.2 Documentationwhich Laravel differentiates itself from other frameworks. Here are a few examples that we think make good bullet points: Bundles are Laravel's modular packaging system. The Laravel Bundle Repository that all you have to do i load the view and it's all ready for you. This keeps you from having to make sure that your controllers load the a bunch of data from your models for views that are unrelated rapidly growing, friendly and enthusiastic community. The Laravel Forumsare a great place to find help, make a suggestion, or just see what other people are saying. Many of us hang out every day in the #laravel0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.0 Documentation
is no longer in source control, and you must SSH into your server to add the Cron entries. Let's make our lives easier. The Laravel command scheduler allows you to fluently and expressively define your ', '}}}'); \Blade::setEscapedContentTags('{{{', '}}}'); This should not be done lightly, and may make your application more vulnerable to XSS exploits. Also, comments with {{- - will no longer work information as possible and a code sample that demonstrates the issue. The goal of a bug report is to make it easy for yourself - and others - to replicate the bug and develop a fix. Remember, bug reports0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.6 中文文档文件可能会变得很臃肿,所以,作为使用闭包来授权频道的替代方案,你现在可以使用 频道类。要生成一个频道类,可以使用 Artisan 命令 make:channel。该命令会将新生成的频道类存放到 app/Broadcasting 目录下: php artisan make:channel OrderChannel 接下来,在 routes/channels.php 文件中注册这个频道类: use 消费的资源控制器时,通常你会排除输出 HTML 模板的路由,例如 create 和 edit,要生成不包含这些方法的资源控制器,可以在使 用 Artisan 命令执行 make:controller 时使用 --api 开关: php artisan make:controller API/PhotoController --api 模型序列化优化 在之前版本的 Laravel 中,队列中的模型在反序列化后不会带有完整的已加载关联关系。在 目录用于存放与数据库交互的模型类应该没有什么异议, 而业务逻辑应该放到 services 这种目录之下。所以推荐大家在生成模型类的时候指定生成到 app/Models 目录下: php artisan make:model Models/Test 根目录 App 目录 app 目录包含了应用的核心代码,注意不是框架的核心代码,框架的核心代码在 /vendor/laravel/framework0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.2 中文文档通过多认证驱动,Laravel 可以轻松处理后台用户认证;此外,Laravel 5.2 还提供了便捷 的方式来创建前台认证视图,只需在终端执行如下 Artisan 命令即可: php artisan make:auth 该命令会生成纯文本的、兼容 Bootstrap 样式的视图用于登录、注册和密码重置。该命令 还会使用相应路由更新路由文件。 注意:该功能特性只能在新应用中使用,不能再应用升级过程中使用。 在 Laravel 5.2 可轻松实现表单字段的数组输入验证。例如,要验证给定数组输入字段中 的每一个 email 是唯一的,可以这么实现: $validator = Validator::make($request->all(), [ 'person.*.email' => 'email|unique:users' ]); 同样,你可以在语言文件中使用 * 来指定验证数组字段: IronMQ 队列驱动被移动到自己的扩展包中,不再被框架核心支持: http://github.com/LaravelCollective/iron-queue 任务/队列 php artisan make:job 命令现在默认会创建一个队列任务类,如果你想要创建一个同步任 务(非队列),在使用该命令时加上 --sync 选项。 邮件 邮件配置中移除了 pretend 选项,取而代之的,使用0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档学院致力于提供优质 Laravel 中文学习资源 11 前端架构 注:Laracasts 有关于本特性的免费视频教程。 Laravel 5.3 提供了一个更加现代的前端架构。这主要会影响 make:auth 命令生成的认证脚手架。 不再从 CDN 中加载前端资源,所有依赖都被定义在默认的 package.json 文件中。 此外,支持单文件的 Vue 组件现在已经开箱支持, reso alue 感兴趣,所以 我们将其放到第一个。你可以在应用中进行一次全局搜索以验证是否你在应用中通过旧的方式使 用了这个函数。 Artisan make:console 命令 make:console 命令现在被重命名为 make:command。 认证 认证脚手架 Laravel 框架提供的默认的两个认证控制器已经被分割成四个,这一更改让认证控制器变得更加 清爽、责任 ValidationException。 支持空的原生数值 当验证数组、布尔值、整型、数字、字符串时,null 不会被当作有效值,除非在约束条件中设置 包含 nullable: Validate::make($request->all(), [ 'string' => 'nullable|max:5', ]); 1.3 贡献代码 1、缺陷报告 为了鼓励促进更加有效积极的合作,Laravel0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 6.0 中文文档中文学习资源:https://xueyuanjun.com 8 use App\LogEntry; use Illuminate\Support\LazyCollection; LazyCollection::make(function () { $handle = fopen('log.txt', 'r'); while (($line = fgets($handle)) !== false) { yield Composer 扩展包 laravel/ui 中,这样一来可以让 UI 脚手架代 码的开发和维护与主框架分离。所以,在默认框架脚手架代码中,现 在已经剔除了 Bootstrap 和 Vue 相关代码,make:auth 命令也被 提取出去。 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 11 如果想要恢复之前版本的 Vue/Bootstrap 目录用于存放与数据库交互的模型类应该没有 什么异议,而业务逻辑应该放到 services 这种目录之下。所以推荐 大家在生成模型类的时候指定生成到 app/Models 目录下: php artisan make:model Models/Test 根目录 应用目录 app 目录包含了应用的核心代码,注意不是框架的核心代码,框架的 核心代码在 /vendor/laravel/framework 里面,此外你为应用编写0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档$collection->lists('id')->all(); 命令&处理器 app/Commands 目录现在被重命名为 app/Jobs,但是并不需要将你的命令移动到新位置,你 可以继续使用 make:command 和 handler:command Artisan 命令生成自己的类。 同样的,app/Handlers 目录被合并到 app/Listeners 目录下,你也不必将已经存在的命令 Homestead。Homestead 安装完成后,使用 make 命令生成 Vagrantfile 和 Homestead.yaml 文件,make 命令将会自动配置 Homestead.yaml 中的 sites 和 folders 属性。 Mac/Linux: php vendor/bin/homestead make Windows: vendor\bin\homestead make 本文档由 Laravel 保护中间件等等。所 有的中间件都位于 app/Http/Middleware 目录。 2、定义中间件 想要创建一个新的中间件,可以通过 Artisan 命令 make:middleware: php artisan make:middleware OldMiddleware 这个命令会在 app/Http/Middleware 目录下创建一个新的中间件类 OldMiddleware,在这个0 码力 | 307 页 | 3.46 MB | 1 年前3
The Laravel Handbook
the “PHP killer app”. PHP is often diregarded by developers, but it has some unique features that make it a great language for Web Development and Laravel figured out how to take advantage of the best as Web Developers we must know in which scenario one tool is more optimal than others. So we can make the best technical choice depending on the requirements. 5 In this handbook I am going to give production server you don’t want that. Some options in config files, like the ones you see above, make use of the env() Laravel helper function to get the environment variable. While options stored0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》 03. Laravel
tuto à jour : bien préciser la version (10) dans votre recherche – Laravel 10 : Best Momo19, Tuts Make20, Plural Sight21 Environnement de développement • De quoi ai-je besoin pour développer ? – (L)AMP Console • Aide aux tâches courantes, ex: $php artisan route:list $php artisan migrate $php artisan make:controller $php artisan list • Extensible29 Premiers pas • Routes30 – Ajouter une route /test0 码力 | 8 页 | 224.34 KB | 1 年前3
共 11 条
- 1
- 2













