Laravel 6.0 中文文档的基础上继续进行优化, 包括引入语义化版本、兼容 Laravel Vapor、优化授权响应、支持任 务中间件、新增懒集合、优化数据库子查询、将前端脚手架提取到独 立的 Composer 包 laravel/ui、以及多个 bug 修复和可用性的提 升。 语义化版本 Laravel 框架包 laravel/framework 现在遵循语义化版本标准。这使 得框架得以和其他已经遵循该版本标准的 Laravel ->orderBy('arrived_at', 'desc') ->limit(1) )->get(); Laravel UI 之前版本 Laravel 提供的典型的前端脚手架代码现在被提取到独立 的 Composer 扩展包 laravel/ui 中,这样一来可以让 UI 脚手架代 码的开发和维护与主框架分离。所以,在默认框架脚手架代码中,现 在已经剔除了 Bootstrap 和 Vue un.com 11 如果想要恢复之前版本的 Vue/Bootstrap 脚手架代码,可以安 装 laravel/ui 扩展包,并使用 Artisan 命令 ui 来安装前端脚手架 代码: composer require laravel/ui php artisan ui vue --auth 升级指南 重要更新概览 影响较大 授权资源 & viewAny 字符串 & 数组辅助函数0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档的发布,所以这也是自 Laravel Spark 发布以来第一次重大版本升级。Spark 6.0 为 Stripe 和 Braintree 引入 了按座定价功能,以及本地化、Bootstrap 4、增强 UI 和 Stripe Elements 支持。 注:本文档只是概述了框架大部分引人注目的重要升级,要了解详细升级日志可以查看 GitHub 上到 change logs。 日志优化 Laravel 别名以便使用。例如,假设一个 Blade 组件存放 在 resources/views/components/alert.blade.php,你可以使用 component 方法将这个组件名从 components.alert 改为别名 alert: Blade::component('components.alert', 'alert'); 组件起了别名之后,就可以使用别名来渲染: @component('alert') MAIL_ENCRYPTION=null 端口转发配置 默认情况下,Homestead 端口转发配置如下: SSH: 2222 → Forwards To 22 ngrok UI: 4040 → Forwards To 4040 HTTP: 8000 → Forwards To 80 HTTPS: 44300 → Forwards To 443 0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档token)变得轻松,你还可以允许用户通 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 6 过 Web UI 创建“个人访问令牌”。为了让你更快上手,Passport 内置了一个 Vue 组件,该组件提供 了 OAuth2 后台界面功能,允许用户创建客户端、撤销访问令牌,以及更多其他功能: < 不再从 CDN 中加载前端资源,所有依赖都被定义在默认的 package.json 文件中。 此外,支持单文件的 Vue 组件现在已经开箱支持, resources/assets/js/components 目录下包含 了一个简单的示例组件 Example.vue ,新的 resources/assets/js/app.js 文件将会启动被配置你 的 JavaScript 库以及 Vue 组件。 配到路由中,这可以通过使用 HTTP Kernel 的 $middlewareGroups 属性实现。 Laravel 自带了开箱即用的 web 和 api 两个中间件组以包含可以应用到 Web UI 和 API 路由的 通用中间件: /** * The application's route middleware groups. * * @var array0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
ré-écriture des URL, …) • Object Relational Mapping5 – Active Record, Table Data Gateway, Data Mapper, … • UI Patterns6 MVC for webdev Conventions • Nommage – Classes – Base de données – Fichiers et dossiers //blog.mazenod.fr/2010/01/design-pattern-mvc-zoom-sur-la- couche-modele-dal-dao-orm-crud/ 6http://ui-patterns.com/ 2 Figure 1: MVC 3 Bonnes pratiques • Heavy Model, Light Controller • Don’t Repeat com/docs/master/eloquent 26https://en.wikipedia.org/wiki/List_of_object-relational_mapping_software#PHP 17 URI as UI Pensez à Wikipedia. Les adresses des pages font partie de l’expérience utilisateur. Un utilisateur0 码力 | 24 页 | 1.03 MB | 1 年前3
《Slides Dev Web》 01. Cours devweb
respect conventions et bonnes pratiques ∗ Déploiement, configuration – User Experience : 30% ∗ Design UI, Utilisabilité (Efficacité, efficience, satisfaction) – Gestion de projet : 20% ∗ Fichiers versionnés0 码力 | 7 页 | 129.56 KB | 1 年前3
Laravel 5.0 Documentation
Application language files and views have been moved to the resources directory. All major Laravel components implement interfaces which are located in the illuminate/contracts repository. This repository Laravel core service providers are listed in this array. These providers bootstrap the core Laravel components, such as the mailer, queue, cache, and others. To register your provider, simply add it to the Manager classes that manage the creation of driver-based components. These include the cache, session, authentication, and queue components. The manager class is responsible for creating a particular0 码力 | 242 页 | 1.44 MB | 1 年前3
The Laravel Handbook
iterations were done and how many are left. This is just a basic intro. We’ll see more about Blade with components later. 4. Dynamic routes We’ve seen how to create static routes with Laravel. Sometimes you }, plugins: [], }; In resources/css/app.css add this: @tailwind base; @tailwind components; @tailwind utilities; 42 Finally, back to the terminal, run npm run dev and keep it running0 码力 | 111 页 | 14.25 MB | 1 年前3
Learning Laravel• PHPUnit • git (not required but strongly recommended) • Assuming you have all these three components installed (at least you need composer), first go to your web servers document root using terminal following (depending on your installed Lumen version, in my case it was 5.4.4)- Lumen (5.4.4) (Laravel Components 5.4.*) If you open lumen-project/routers/web.php file there you should see the following- $app->get('/'0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.2 中文文档Laravel 5.2 文档 HTTP 路由模型绑定部分。 中间件组 中间件组允许你通过单个方便的键来对相关路由中间件进行分组,从而为某个路由一次指 定多个中间件。例如,在同一个应用中构建 Web UI 或 API 时这一特性很有用,你可以 将 session 和 csrf 路由分组到一个 web 组,或者将访问频率限制分组到 api 中。 实际上,默认的 Laravel 5.2 应用结构采用的正是这个方法。例如,在默认 其分配到路由中,这可以通过使用 HTTP Kernel 的 $middlewareGroups 实现。 Laravel 自带了开箱即用的 web 和 api 两个中间件组以包含可以应用到 Web UI 和 API 路由的通用中间件: /** * 应用的路由中间件组 * * @var array */ protected $middlewareGroups = [0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 3.2 DocumentationLoading keeps you from having to maintain an autoloader configuration and from loading unnecessary components when they won't be used. Want to use a library or model? Don't bother loading it, just use it0 码力 | 139 页 | 1.13 MB | 1 年前3
共 10 条
- 1













