Laravel 5.6 中文文档注:本文档只是概述了框架大部分引人注目的重要升级,要了解详细升级日志可以查看 GitHub 上到 change logs。 日志优化 Laravel 5.6 带来了日志系统的重大升级,所有日志配置都存放在新的 config/logging.php 配置文件,你现在可以轻松构建发送日志消息到多个处 理器的日志”堆栈”。例如,你可以发送所有 debug 级别消息到系统日志同时发送 error 级别消息到 Slack 以便团队成员可以快速响应: You are not allowed to access this resource! @endcomponent 或者,如果组件没有额外插槽,可以使用组件别名作为 Blade 指令: @alert You are not allowed to access this resource! @endalert Argon2 密码哈希 如果你在构建一个基于 PHP PHP 7.2.0+ 的应用,Laravel 现在可以支持通过 Argon2 算法进行密码哈希,默认的应用哈希驱动通过新增 的 config/hashing.php 配置文件来控制。 UUID 方法 Laravel 5.6 引入了两个新的方法来生成 UUID:Str::uuid 和 Str::orderedUuid,orderedUuid 方法会生成一个时间戳最靠前的 UUID,通过诸如 MySQL0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档不再被支持,请升 级应用到 Carbon 2.0。 配置 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 15 AWS_REGION 环境变量 影响级别:可选 如果你计划使用 Laravel Vapor,那么需要在 config 目录下更新所 有已存在的 AWS_REGION 配置为 AWS_DEFAULT_REGION,此外,你还 laravel/laravel 代码仓库的更新日志。尽管其 中的很多更新不是必须的,但是你可以将应用中的这些文件与代码仓 库保持同步。其中的一些更新已经在这篇升级指南中覆盖到了,但是 还有很多其他的小更新比如配置文件或注释的微调,就不会一一指 出。你可以通过 GitHub 比较工具 轻松查看变更以便选择那些对你 而言更为重要的更新。 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习 如果你的代码格式不是很完美,不必担心,StyleCI 会在提交代码时 自动为我们修正代码风格以保持和 Laravel 仓库代码一致,从而让 我们更加专注于代码内容而非风格。 第二部分:快速入门 安装配置 服务器要求 Laravel 框架对 PHP 版本和必需扩展有一定要求,不过这些要 求 Laravel Homestead 虚拟机都已经满足了,所以强烈推荐使用它 作为 Laravel 本地集成开发环境。0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档.......................................................................................... 33 2.2 配置 .................................................................................................. resources/assets/js/components 目录下包含 了一个简单的示例组件 Example.vue ,新的 resources/assets/js/app.js 文件将会启动被配置你 的 JavaScript 库以及 Vue 组件。 这种架构对开始开发现代的、强大的 JavaScript 应用提供了更好的指导,而不需要要求应用使用 任何给定 JavaScript 或者 5.3 对事件广播进行了显著的优化,需要添加的新的 BroadcastServiceProvider(从 GitHub 下载文件)到 app/Providers 目录,然后将这个新的服务提供者注册到配置文件 config/app.php 的 providers 数组中。 缓存 扩展闭包绑定&$this 使用闭包调用 Cache::extend 方法时,$this 会被绑定到 CacheManager0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.1 中文文档该目录应该是可写的,用来存储临时优化文件如 compiled.php,routes.php,config.php 以及 service.json 新增 BroadcastServiceProvider 在配置文件 config/app.php 中,添加 Illuminate\Broadcasting\BroadcastServiceProvider 到 providers 数组。 认证 如果你在使用 编码标准和 PSR-4 自动载入标准。 本文档由 Laravel 学院(LaravelAcademy.org)提供 9 二、开始 安装及配置 1、安装 1.1 服务器要求 Laravel 框架有少量的系统要求,当然,Laravel Homestead 虚拟机满足所有这些要求: PHP 版本 >= 5.5.9 学院(LaravelAcademy.org)提供 10 2、配置 2.1 基本配置 Laravel 框架的所有配置文件都存放在 config 目录中,每一个选项都是文档化(有良好注释) 的,所以随便浏览所有配置文件去熟悉这些配置选项。 2.1.1 目录权限 安装完 Laravel 后,需要配置一些权限。storage 和 bootstrap/cache 目录应该是可写的,0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档require-dev 部分。 认证 配置文件 更新 config/auth.php 文件内容如下: https://github.com/laravel/laravel/blob/develop/config/auth.php 更新完成后,基于原来的配置设置认证选项,如果不做改动,认证服务将基于 Laravel 5.1。 在新的 auth.php 配置文件中,要特别注意 passwords passwords.users.email 配置项,由于在 Laravel 5.2 对 email 视图路径有所改动,因此要确保该视图路径与应用实际的路径相匹 配,如果不匹配的话要更新该配置值。 Contracts 如果你实现了 Illuminate\Contracts\Auth\Authenticatable 契约但没有使 用 Authenticatable trait,那么需要添加一个新的 getAuthIdentifierName 如果你使用了 Auth::extend 方法自定义获取用户的方法,现在需要使 用 Auth::provider 来自定义用户提供者。一旦你自定义了提供者,就要在新 的 auth.php 配置文件中的 providers 数组中配置该提供者。 更多自定义认证提供者详情,请查看其对应文档。 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.0 Documentation
Introduction ii. Basic Controllers iii. Controller Middleware iv. Implicit Controllers v. RESTful Resource Controllers vi. Dependency Injection & Controllers vii. Route Caching iv. Requests i. Obtaining Controllers Introduction Basic Controllers Controller Middleware Implicit Controllers RESTful Resource Controllers Dependency Injection & Controllers Route Caching Requests Obtaining A Request Instance Middleware Introduction Basic Controllers Controller Middleware Implicit Controllers RESTful Resource Controllers Dependency Injection & Controllers Route Caching Instead of defining all of your0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning Laravel41 Basic Controllers 41 Controller Middleware 41 Resource Controller 42 Example of how a Resource Controller look 42 Actions Handled By Resource Controller 44 Chapter 12: Cron basics 45 Introduction Using Gates Gates are closures that determine if a user is allowed to perform a certain action on a resource. Gates are typically defined in the boot method of AuthServiceProvider and succinctly named to for you. Policies Policies are classes that help you organise authorisation logic around a model resource. Using our previous example, we might have a ContentPolicy that manages user access to the Content0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
protected $fillable = ['name']; } A model is a resource, and once you define a model you’ll later be able to create a new resource, delete, update it. Now let’s build a form to add a new dog0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》 09. Services Web
– orientée service2 : atome : service (traitement) : RPC (SOAP) 1https://en.wikipedia.org/wiki/Resource-oriented_architecture 2https://fr.wikipedia.org/wiki/Architecture_orient%C3%A9e_services 1 Service0 码力 | 6 页 | 47.90 KB | 1 年前3
共 9 条
- 1













