Laravel 5.0 Documentation
application. Instead of a single, flat file of route filters, all middleware are now broken into their own class files. A new app/Providers directory replaces the app/start files from previous versions sample values to the .env.example file as well. This will help your other team members create their own .env files. Copy and paste your old routes.php file into your new app/Http/routes.php . Next ['middleware' => 'auth']. ) Filters are not removed in Laravel 5. You can still bind and use your own custom filters using before and after . By default, CSRF protection is enabled on all routes. If0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationstable releases in the industry. Laravel also makes it easy for you to write unit-tests for your own code. You can then run tests with the "Artisan" command-line utility. Automatic Pagination prevents frameworks. However due to Laravel's unique architecture, it is possible for developers to create their own infrastructure that is specifically designed for their application. This may be most beneficial to Laravel 3.0. They are a simple way to group code into convenient "bundles". A bundle can have it's own views, configuration, routes, migrations, tasks, and more. A bundle could be everything from a database0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelthe property of their respective company owners. Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to development. You can also write your own commands to extend the Artisan command line tool. Eloquent ORM To connect your models to various types of databases, Laravel offers its own ORM with a large set of functions community-driven documentation, so if you already have experiences on Laravel, share your knowledge by add your own topics or examples! Just don't forget to consult our Contribution style guide on this topic remarks0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
border border-black"> Here’s the result: 48 Now, we don’t want the form to have its own route any more, because we have it on / . So let’s create a folder named partials in resources/views see how to use a command in particular, run php artisan- h : 106 You can create your own commands, too. Run php artisan make:command MyCommand This creates a file in app/Console/Commands/MyCommand much more. Inside a command you have access to all the goodies provided by Laravel, including your own code, classes, and more. You can also call other commands. And commands can be ran by any part of 0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 6.0 中文文档com 506 { return $user->id === $post->user_id ? Response::allow() : Response::deny('You do not own this po st.'); } 从 Policy 中返回授权响应时,Gate::allows 方法仍然返回的是简 单的布尔值,只不过你可以使用 Gate::inspect 方法获取从 Gate 方法会替换字符串中最后一次出现的值: use Illuminate\Support\Str; $replaced = Str::replaceLast('the', 'a', 'the quick br own fox jumps over the lazy dog'); // the quick brown fox jumps over a lazy dog Str::singular() Str::singular0 码力 | 1442 页 | 14.66 MB | 1 年前3
共 5 条
- 1













