Showing 7 of 587 result(s)
The se_is_set_type modifier is a utility modifier that can be used to easily check if a Bard or replicator field contains a specific set at some arbitrary position. As an example, this modifier can be used to simplify template code to dynamically...
Our next challenge is going to be allowing for string input values. We will update our input.txt file to contain the following value: where(name, =, 'Simple string input') If we run our parser now we get the following output: It almost looks...
Inside of a Blade view, a checkbox can be created using the Form class: {{ Form::checkbox('my_checkbox', '1') }} In the above code sample, my_checkbox is the name of the input element and 1 is the value the checkbox was given. This would generate...
Thinking back on our previous hypothetical scenario, we can be thankful that there is a built in PHP function named array_filter . This function filters elements of an array using a callback function . That callback function will be the lambda...
The parseCallback helper method is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: ClassName@someMethodName...
Since Laravel's console application and commands are built on top of the Symfony console component, we can use Symfony's console style system within our Laravel commands. Styles are used to control the background and foreground colors of text that...
parseCallback is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: ClassName@someMethodName The point is that...