Signature | Laravel 5: Redirecting Users to the Previous Page With back
The signature of the back method is: 1 function back ( 2 $ status = 302 , 3 $ headers = [ ] , 4 $ fallback = false 5 ) ;
Showing 10 of 2,133 results.
The signature of the back method is: 1 function back ( 2 $ status = 302 , 3 $ headers = [ ] , 4 $ fallback = false 5 ) ;
The se_exception tag is similar to Statamic's not_found tag, but can be used to trigger an exception. It's primary use-case is for testing, but can be sprinkled around your site's template wherever you'd like to throw an exception. 1 {{...
The ability to easily interactive with your application to experiment or debug issues is an incredibly important thing. To help with this, Laravel provides a tinker command out of the box. The tinker command uses the PsySH library to setup a REPL...
csrf_token() The csrf_token (cross-site request forgery token) function is a shortcut for retrieving the CSRF token from the session storage. The following is an example of what the csrf_token function may output: 1 <?php 2 3 //...
The following examples assume that the $_POST super-global contains the following information: 1 array { 2 [ " first_name " ] " John " 3 [ " last_name " ] " Doe " 4 [ " password " ] " some_password " 5 } We could easily get all the information...
The toJson method internally makes a call to PHP's json_encode function. Unlike json_encode , toJson does not provide a way to specify the depth (essentially how many arrays are nested inside of each other) to which data will be encoded, which is...
When working with arrays and lists of items, a frequent task we will encounter when building our sites is wrapping the final output in some container element. For example, the following Antlers template surrounds our dynamic output in an...
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE...
…S>] Where <LOWER_BOUNDS> is the lower bounds of the range, and <UPPER_BOUNDS> is the upper bounds of the range. We will create a language file at resources/lang/en/plural.php : 1 <?php 2 3 return [ 4 5 ' ranges ' => 6 7 ' {0}No items 8...
We could also create a range for all numbers less than zero: 1 <?php 2 3 return [ 4 5 ' ranges ' => 6 7 ' {0}No items 8 |[1,3]Between one and three 9 |[4,6]Between four and six 10 |[7,*]Seven and beyond! 11 |[*,-1]Less than zero ' 12 13 ] ; The...