Showing 7 of 1,697 result(s)
…est2 route, our cached content would not invalidate itself. To accomplish this, we will need to get somehow the file path to the the controller and the routes file. To do this, we will need to utilize PHP's reflection features. Within our...
…command from the root of your project: composer require torchlight/torchlight-commonmark Whenever Torchlight runs into an issue that prevents it from highlighting a code block, it throws an exception unless it runs in a production environment....
In this section, we will add some simple reporting features to our cache and two more Artisan commands. Our cache reporting will provide the total disk size of our cache, the number of cached responses, and some information about our cache...
…rvice provider, we will register a new view composer using the view()->composer() helper function, and supply a callback that will get executed before our template is rendered. We can get access to the view that Laravel is creating through the...
…same. PHP does not like it when code attempts to access array elements that do not exist. The same can be said for accessing an object's properties: The above code example will again throw an instance of ErrorException , with the error message...
…tware Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...
…tware Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...