英語 での Laravel の使用例とその 日本語 への翻訳
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
When returning an Eloquent resource collection from a route, Laravel resets the collection's keys so that they are in simple numerical order.
Extending Laravel with a custom session driver is just as easy as extending the cache system.
Wouldn't it be nice if Laravel could just inject the Task instance that matches the ID in the first place?
Once Laravel is installed, you should also configure your local environment.
If your package contains view components, you may use the loadViewComponentsAs method to inform Laravel how to load them.
All Laravel packages are distributed via Packagist and Composer, so learning about these wonderful PHP package distribution tools is essential.
For this reason, Laravel also provides support for defining translation strings using the"default" translation of the string as the key.
When using Laravel, variables may be dumped using the global dump function.
Using Laravel you may create various routes with the name of the same existing route.
With a new install of Laravel, you will find a package. json file in the root.
Laravel can create unique URLs so we can create different routes with the name of same existing route.
This may change the format of your JSON serialized date fields when migrating from Laravel 5.0 to 5.1.
Running The Queue Worker Laravel includes a queue worker that will process new jobs as they are pushed onto the queue.
Running The Queue Listener Laravel includes an Artisan task that will run new jobs as they are pushed onto the queue.
This is because Laravel will always check for errors in the session data, and automatically bind them to the view if they are available.
Instead of forcing you to do this manually for each request, Laravel provides some helper methods to make it a cinch.
If you installed Laravel via Composer, this key has probably already been set for you by the key: generate command.
Blade HTML Entity Encoding In previous versions of Laravel, Blade(and the e helper) would not double encode HTML entities.
Controllers, middleware, and requests(a new type of class in Laravel 5.0) are now grouped under the app/Http directory, as they are all classes related to the HTTP transport layer of your application.
When referencing the Laravel framework or its components from your application or package, you should always use a version constraint such as 5.4.*, since minor releases of Laravel do include breaking changes.