Showing 10 of 1,204 results.

Laravel 5 Macros: Creating Callback Macros

…e following: 1 $ value = Str :: rot13 ( ' test ' ) ; In the above example, $value would be assigned the value grfg . The Macroable traits internal mechanisms allow macros to be called from both static and instance contexts. Macros essentially...

replyOpen Event Method | Advanced Reply Forms

The replyOpen() method is called when the reply form is being presented to the user. If you previously hid the form for some reason, or would like to animate the appearance, you can do that here. You will receive an instance of the reply form as...

Submitting Replies via AJAX | Advanced Reply Forms

…ted; they are not the definitive way to implement Meerkat, or any AJAX based system for that matter. These docs will get you up and running, but don't feel like this is the "one true source"; feel free to innovate and experiment. If you come up...

Where to Make AJAX Calls | Advanced Reply Forms

…e visitor. 26 $ ( replyForm ) . fadeOut ( 150 , function ( ) { 27 replyForm . remove () ; 28 } ) ; 29 30 // The `submission` property contains the new comment. 31 var comment = e . submission ; 32 33 // Do anything you'd like here. 34 } else { 35...

Laravel String Helper Function: str_replace_first

The replaceFirst helper method is used to replace the first occurrence of a given $search string with the provided $replace string in the $subject string. All three parameters are required and must be strings. The signature for the replaceFirst...

Filter Search