Laravel 3.2 DocumentationBasics.....116 Creating & Running Tasks.....116 Bundle Tasks.....117 CLI Options.....118 Artisan Commands.....118 Help.....118 Application Configuration (More Information).....118 Database application. You can either download a bundle repository to your bundles directory or use the "Artisan" command-line tool to automatically install them. - The Eloquent ORM is the most advanced PHP they are directly integrated into Laravel. You can both generate and run migrations using the "Artisan" command-line utility. Once another member makes schema changes you can update your local copy0 码力 | 139 页 | 1.13 MB | 2 年前3
Learning LaravelFeatures ..... 2 MVC ..... 2 Blade Templating Engine ..... 3 Routing & Middleware ..... 3 Artisan ..... 3 Eloquent ORM ..... 3 Event Handling ..... 3 Versions ..... 3 Examples ..... 4 Welcome 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 commands using PHP code ..... 9 Creating and registering new artisan command ..... 9 Chapter 3: Authentication ..... 10 Examples.....10 Multi Authentication.....10 Chapter 4: Authorization.....14 Introduction0 码力 | 216 页 | 1.58 MB | 2 年前3
Laravel 5.0 Documentation
iii. Usage iv. Pipelining Artisan CLI i. Overview i. Introduction ii. Usage iii. Calling Commands Outside Of CLI iv. Scheduling Artisan Commands ii. Development organized to the App namespace. This default namespace can be quickly changed using the new app:name Artisan command. Controllers, middleware, and requests (a new type of class in Laravel 5.0) are now grouped If your application is made up entirely of controller routes, you may utilize the new route:cache Artisan command to drastically speed up the registration of your routes. This is primarily useful on applications0 码力 | 242 页 | 1.44 MB | 2 年前3
Laravel 6.0 中文文档命令也被提取出去。 如果想要恢复之前版本的 Vue/Bootstrap 脚手架代码,可以安装 laravel/ui 扩展包,并使用 Artisan 命令 ui 来安装前端脚手架代码: composer require laravel/ui php artisan ui vue --auth ## 升级指南 ## 重要更新概览 影响较大 • 授权资源 & viewAny • 字符串 Laravel 中,php artisan queue:work 命令会无限期重试队列任务,从 Laravel 6.0 开始,该命令默认只会重试队列任务一次,如果你想要强制任务无限期重试,可以通过 tries=0 选项进行指定: php artisan queue:work --tries=0 此外,请确保你的应用数据库包含了 failed_jobs 数据表,你可以通过运行 Artisan 命令 queue:failed-table queue:failed-table 来生成这个迁移: php artisan queue:failed-table ## 请求 Input 门面 影响级别:中等 Input 门面是 Request 门面的翻版,已经被移除,如果你在使用 Input::get 方法,需要将其调整为 Request::input 方法。所有其他调用 Input 门面的地方都需要做类似调整。 ## 任务调度 ## between0 码力 | 1442 页 | 14.66 MB | 2 年前3
Laravel 5.6 中文文档广播频道类 如果你的应用消费多个不同的频道,routes/channels.php 文件可能会变得很臃肿,所以,作为使用闭包来授权频道的替代方案,你现在可以使用频道类。要生成一个频道类,可以使用 Artisan 命令 make:channel。该命令会将新生成的频道类存放到 app/Broadcasting 目录下: 接下来,在 routes/channels.php 文件中注册这个频道类: 最后,可以将频道的授权逻辑放到频道类的 API 消费的资源控制器时,通常你会排除输出 HTML 模板的路由,例如 create 和 edit,要生成不包含这些方法的资源控制器,可以在使用 Artisan 命令执行 make:controller 时使用 --api 开关: php artisan make:controller API/PhotoController --api ## 模型序列化优化 在之前版本的 Laravel 中, 到 Arr::wrap 方法将会返回空数组。 ## Artisan ## optimize 命令 之前版本中废弃的 optimize 命令已经被彻底移除。由于 PHP 自身的性能优化,optimize 命令已经不能给应用提供显著的性能提升,所以,你需要从 composer.json 文件的 scripts 部分移除 php artisan optimize。 ## Blade ## HTML0 码力 | 377 页 | 14.56 MB | 2 年前3
Laravel 5.2 中文文档响。 ## 认证脚手架 通过多认证驱动,Laravel 可以轻松处理后台用户认证;此外,Laravel 5.2 还提供了便捷的方式来创建前台认证视图,只需在终端执行如下 Artisan 命令即可: php artisan make:auth 该命令会生成纯文本的、兼容 Bootstrap 样式的视图用于登录、注册和密码重置。该命令还会使用相应路由更新路由文件。 注意:该功能特性只能在新应用中使用,不能再应用升级过程中使用。 IronMQ 队列驱动被移动到自己的扩展包中,不再被框架核心支持:http://github.com/LaravelCollective/iron-queue ## 任务/队列 php artisan make:job 命令现在默认会创建一个队列任务类,如果你想要创建一个同步任务(非队列),在使用该命令时加上 --sync 选项。 ## 邮件 邮件配置中移除了 pretend 选项,取而代之的,使用 example 文件重命名为 .env,现在立即这样做。如果应用 key 没有被设置,用户 Session 和其它加密数据将会有安全隐患。 如果你想要手动生成该 key 的值,使用如下 Artisan 命令即可: php artisan key:generate ## 更多配置 Laravel 几乎不再需要其它任何配置就可以正常使用了,但是,你最好再看 看 config/app.php 文件,其中包含0 码力 | 377 页 | 4.56 MB | 2 年前3
Laravel 5.3 中文文档11.2 关联关系 ..... 488 11.3 集合 ..... 516 11.4 访问器&修改器 ..... 518 11.5 序列化 ..... 523 12. Artisan Console ..... 528 12.1 控制台命令 ..... 528 12.2 任务调度 ..... 542 13. 测试 ..... 550 13.1 起步 .... 闭包控制台命令 除了通过命令类定义之外,现在 Artisan 命令还可以在 app/Console/Kernel.php 文件的 commands 方法中以简单闭包的方式定义。在新安装的 Laravel 5.3 应用中,commands 方法会加载 routes/console.php 文件,从而允许你基于闭包、以路由风格定义控制台命令: Artisan::command('build {project}' $this->info('Building project...'); $this->info('Building project...'); 更多详情请查看完整的 Artisan 文档。 ## $loop 变量 注:Laracasts 中有关于此特性的免费视频教程。 当我们在 Blade 模板中循环遍历的时候,$loop 变量将会在循环中生效。通过该变量可以访问很0 码力 | 691 页 | 9.37 MB | 2 年前3
Laravel 5.1 中文文档将登录次数限制引入框架,更多详情请参考认证限制一节。 ### Laravel 5.1 Laravel 5.1 在 5.0 的基础上继续进行优化和提升,接受 PSR-2 代码风格,新增事件广播机制,中间件参数,Artisan 优化,等等。 #### PHP 5.5.9+ 由于 PHP 5.4 将会在今年 9 月份“寿终正寝”,并且 PHP 开发组不会再提供安全更新,Laravel 5.1 要求 PHP5.5.9 ## Artisan 优化 Artisan 命令可以通过使用一个简单的,类似路由风格的“签名”(提供了一个非常简单的接口来定义命令行参数和选项)来定义: /** * 命令行的名称和签名. * * @var string */ 3 protected $signature = 'email:send {user} {--force}'; 更多关于 Artisan 的内容,请查看命令行一节。 命令&处理器 app/Commands 目录现在被重命名为 app/Jobs,但是并不需要将你的命令移动到新位置,你可以继续使用 make:command 和 handler:command Artisan 命令生成自己的类。 同样的,app/Handlers 目录被合并到 app/Listeners 目录下,你也不必将已经存在的命令和事件处理器进行移动和重命名,你可以继续使用 handler:event0 码力 | 307 页 | 3.46 MB | 2 年前3
The Laravel Handbook
a folder called first. Now go into that folder and run php artisan serve : cd first php artisan serve → dev cd first → first php artisan serve INFO Server running on [http://127.0.0.1:8000]. ! ments/1/e/8/8/1e885f1d76585f511dce6ee7e2eafba2/p7_1.jpg) Press Ctrl+C to stop the server php artisanis something you'll use often in Laravel, as it can do a lot of useful stuff for While you’re here I recommend you install the extensions • Laravel Extra Intellisense • Laravel Artisan • Laravel Blade Snippets • PHP tools for VS Code We have a bunch of folders and a bunch of files 0 码力 | 111 页 | 14.25 MB | 2 年前3
《Slides Dev Web》 03. Laravel
Laravel – Documentation officielle $ ^{16} $ de Laravel - Cheat Sheet Laravel 8 $ ^{17} $ , Artisan $ ^{18} $ ## • Tutorials – Pour un tuto à jour : bien préciser la version (10) dans votre recherche /public ## Artisan • Laravel's CLI • Construit avec Symfony Console • Aide aux tâches courantes, ex: $php artisan route:list $php artisan migrate $php artisan make:controller $php artisan list • affiché : /test/param - Utiliser une vue pour cette route - Lister les routes avec la commande artisan • Contrôleurs $ ^{31} $ - Ajouter un contrôleur : Test - Lui ajouter une action : index - Ajouter0 码力 | 8 页 | 224.34 KB | 2 年前3
共 15 条
- 1
- 2
相关搜索词
LaravelEloquent ORMArtisanMigrationsIoC ContainerLaravel框架MVC模式Eloquent微服务架构Laravel 5.0升级指南ComposerMiddlewareLaravel 6.0语义化版本异常处理授权响应Ignition日志优化任务调度动态频率限制Blade组件优化Argon2密码哈希Laravel 5.2多认证驱动全局作用域优化中间件组隐式模型绑定Laravel 5.3通知系统Webpack闭包控制台命令安全漏洞Laravel 5.1PSR-2缓存事件广播中间件参数PHPWeb DevelopmentRailsDjangoWeb开发RESTful RoutesORM













