Showing 7 of 1,697 result(s)
…the Pint command, you can add a pintCommand configuration option to your .blade.format.json configuration file. In .blade.format.json 1 { 2 "useLaravelPint" : true , 3 "pintCommand" : "your-pint-command {file}" 4 } Make sure to include the {file}...
We need to change the $parameters declaration and make it so it is just an empty array. Let's also store the page name in its own variable, since we will use it later. We do not need to change the code that builds the parameters array from the...
The has method determines if a translation exists. It accepts a $key , which corresponds to an array key within the translation group file, i.e., user . The method also accepts a $locale , which can be used to determine if a given key exists for a...
Input parameters require the Symfony\Component\Console\Input\InputArgument class to be imported in the current PHP file. Input parameters are defined in the getArguments instance method in the command class. The following signature will be...
The times static method is similar to PHP's range function, with some extra functionality specific for collections. The times method accepts a $number argument as well as an optional $callback function. The argument supplied for the $number...
…the currently authenticated user (if there is one) has an active billing subscription. We can then use this tag in our site's template to restrict access to our content. From the root of your project issue the following command: php please...
By taking a quick scan of that table, you may notice that some filters accept multiple parameters. Parameters are separated by a comma ( , ). For example, if we wanted to filter our comments to only those left by an authenticated user in a known...