The Laravel Handbook
contents 0. Table of contents 1. Introduction to Laravel 2. Getting started 3. Blade 4. Dynamic routes 5. Adding a database 6. How to use migrations to create and modify the database schema 7. can add items to the database 13. Push the app code to GitHub 14. Deployment 15. Dynamic routes 16. Non-web routes 17. Creating commands 18. Where to go from here The goal of this handbook is to changing any of the configuration options, let’s modify what you see in the browser. 11 Open the routes folder and you’ll 4 files. Open web.php : This is the code that displays the sample home page0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 3.2 Documentation..................... 18 Named Routes ............................................................................................................. 18 HTTPS Routes................................. ............................................................................. 19 Bundle Routes ....................................................................................................... ................................................................................... 51 URLs To Routes ................................................................................................0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.0 Documentation
Routing i. Basic Routing ii. CSRF Protection iii. Method Spoofing iv. Route Parameters v. Named Routes vi. Route Groups vii. Route Model Binding viii. Throwing 404 Errors ii. Middleware i. Introduction i. Introduction ii. Authenticating Users iii. Retrieving The Authenticated User iv. Protecting Routes v. HTTP Basic Authentication vi. Password Reminders & Reset vii. Social Authentication ii. Billing Unit Testing i. Introduction ii. Defining & Running Tests iii. Test Environment iv. Calling Routes From Tests v. Mocking Facades vi. Framework Assertions vii. Helper Methods viii. Refreshing The0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning Laravel5 Chapter 2: Artisan 6 Syntax 6 Parameters 6 Examples 8 Introduction 8 List all registered routes filtered by multiple methods 8 Running Laravel Artisan commands using PHP code 9 Creating and registering routing behaviour in Laravel 5.2.31 + 28 Syntax 28 Parameters 28 Remarks 28 Examples 28 Adding api-routes with other middleware and keep default web middleware 28 Chapter 8: Collections 30 Syntax 30 Remarks from routes in controller method 148 Chapter 52: Route Model Binding 150 Examples 150 Implicit Binding 150 Explicit Binding 150 Chapter 53: Routing 152 Examples 152 Basic Routing 152 Routes pointing0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.6 中文文档如果你的应用消费多个不同的频道,routes/channels.php 文件可能会变得很臃肿,所以,作为使用闭包来授权频道的替代方案,你现在可以使用 频道类。要生成一个频道类,可以使用 Artisan 命令 make:channel。该命令会将新生成的频道类存放到 app/Broadcasting 目录下: php artisan make:channel OrderChannel 接下来,在 routes/channels 敏感文件被黑客窃取,进而对网站安全造成威胁; Resources 目录 resources 目录包含了应用视图文件和未编译的原生前端资源文件(LESS、SASS、JavaScript),以及本地化语言文件; Routes 目录 routes 目录包含了应用定义的所有路由。Laravel 默认提供了四个路由文件用于给不同的入口使用:web.php、 api.php、 console.php 和 channels.php。 function () { return 'Hello, Welcome to LaravelAcademy.org'; }); 我们以在安装配置文档中新建的 blog 应用为例,在 routes/web.php 中定义该路由:  本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档中文学习资源:https://xueyuanjun.com 46 resources 目录包含了应用视图文件和未编译的原生前端资源文件 (LESS、SASS、JavaScript),以及本地化语言文件; 路由目录 routes 目录包含了应用定义的所有路由。Laravel 默认提供了四个 路由文件用于给不同的入口使用:web.php、 api.php、 console.php 和 channels.php。 web 我们以在安装配置文档中新建的 blog 应用为例, 在 routes/web.php 中定义该路由: 在浏览器中通过 http://blog.test/hello 即可访问我们刚刚定义 的路由,页面输出内容如下: Hello, welcome to LaravelAcademy.org 默认路由文件 所有 Laravel 路由都定义在位于 routes 目录下的路由文件中,这些 文件通过框架自动加载,相应逻辑位 app/Providers/RouteServiceProvider 类。 routes/web.php 文件定义了 Web 界面的路由,这些路由被分配到 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 169 了 web 中间件组,从而可以使用 Session 和 CSRF 保护等功能。 routes/api.php 中的路由是无状态的,这是因为被分配到了0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档任何给定 JavaScript 或者 CSS 框架。关于如何进行现代 Laravel 前端开发,请查看对应文档。 路由文件 默认情况下,新安装的 Laravel 5.3 应用在新的顶级目录 routes 下包含两个 HTTP 路由文件。web 和 api 路由文件在如何分割 Web 界面和 API 路由方面提供了指导。api 路由文件中的路由会通 过 RouteServiceProvider 以 在 app/Console/Kernel.php 文 件 的 commands 方法中以简单闭包的方式定义。在新安装的 Laravel 5.3 应用中, commands 方法会加 载 routes/console.php 文件,从而允许你基于闭包、以路由风格定义控制台命令: Artisan::command('build {project}', function ($project) 地化文件; 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 42 Routes 目录 routes 目录包含了应用的所有路由定义。Laravel 默认提供了三个路由文件:web.php、api.php 和 console.php。 web.php 文件包含的路由都会应用 web0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
Orchestration, transfert des infos • Front Controller – Traitement et dispatch des requêtes grâce aux routes – (bootstrap, ré-écriture des URL, …) • Object Relational Mapping5 – Active Record, Table Data Patterns6 MVC for webdev Conventions • Nommage – Classes – Base de données – Fichiers et dossiers • ROUTES : http://app.host.tld/controller/action[/key/val] • Arborescence : – Imposée ou libre selon frameworks de réécrire les URL pour nous. Réécriture d’URL # 04-routes/.htaccess # mod_rewrite RewriteEngine on RewriteBase /php-intro-framework/04-routes/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 5.2 中文文档Blackfire 扩展。 三、基础 HTTP 路由 1、基本路由 所有应用路由都定义在 App\Providers\RouteServiceProvider 类载入 的 app/Http/routes.php 文件中。 最基本的 Laravel 路由接收一个 URI 和一个闭包: Route::get('foo', function () { return 'Hello World'; Laravel 学院致力于提供优质 Laravel 中文学习资源 21 Route::post('foo', function () { // }); 默认情况下,routes.php 文件包含单个路由和一个路由群组,该路由群组包含的所有路由 都使用了中间件组 web,而这个中间件组为路由提供了 Session 状态和 CSRF 保护功 能。通常,我们会将所有路由定义在这个路由组中。 // 控制器在 "App\Http\Controllers\Admin\User" 命名空间下 }); }); 默认情况下,RouteServiceProvider 引入 routes.php 并指定其下所有控制器类所在的默 认命名空间 App\Http\Controllers,因此,我们在定义的时候只需要指定命名空 间 App\Http\Controllers 之后的部分即可。0 码力 | 377 页 | 4.56 MB | 1 年前3
《Slides Dev Web》 03. Laravel
searchresults&type=Repositories 7https://madewithlaravel.com/ 1 Principales fonctionnalités • Routes RESTful • ORM (Eloquent, implémentation du pattern Active Record) • Migrations • Moteur de templates Extensible29 Premiers pas • Routes30 – Ajouter une route /test – Ajouter un paramètre qui sera affiché : /test/param – Utiliser une vue pour cette route – Lister les routes avec la commande artisan .0 码力 | 8 页 | 224.34 KB | 1 年前3
共 11 条
- 1
- 2













