Showing 7 of 1,697 result(s)
….). In one terminal window I am running: php artisan serve Which produces output similar to this: In the second terminal window I issued the following command to have Expose make the site publicly available for later in the tutorial:...
…signature of the crossJoin method is: If you are unfamiliar with the ...$arrays syntax, this is PHP's variable-length argument syntax. It allows developers to accept any number of arguments; these will be passed to the inner function via the...
…an define a range of numbers to include for the translation line by enclosing the rule within square brackets ( [ and ] ). The lower bounds of the range is listed first, and the upper-bounds of the range is listed second, with the range...
Now that we have an empty tag addon class to work with, let's quickly recap what we want this addon tag to do: what we want to be able to do is determine if a URL query parameter exists. The first thing that I like to do is decide how the addon...
We are going to need to resolve some things out of the IoC, so make sure to use the Illuminate\Support\Facades\App facade. In our PrettyPaginator class, add the following function: its kind of scary, but I'll explain it. When we call the...
…ith a few helper methods sprinkled in to get these details later. In app/HybridCache/Manager.php : And the corresponding changes to our facade. In app/HybridCache/Facades/HybridCache.php : Before we add our cache labels, let us update our...
The two automatic array variables we have not yet looked at are the next and prev variables. These two variables provide a convenient way to access the next and previous elements of the array, respectively. For example, if we had the following...