Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Dispatch, performance

class ContactController extends Controller
{
    /**
     * Store a new podcast.
     *
     * @param    Request  $request
     * @return  JsonResponse
     */
    public function store(ContactFormRequest $request)
    {
        $request->storeContactFormDetails();
 
        dispatch(function () {
             Mail::to('mail@ashallendesign.co.uk')->send(new ContactFormSubmission);
         })->afterResponse();
 
        return response()->json(['success' => true]);
    }
}
Comment

PREVIOUS NEXT
Code Example
Php :: int to string in php 
Php :: when WYSIWYG fields remove paragraph tag 
Php :: Comment supprimer le fil d’Ariane WooCommerce dans WordPress 
Php :: how to include pdf in php page 
Php :: multipart json test laravel 
Php :: wp dev tehem support widget 
Php :: php send POST request same folder 
Php :: seeder name singular or plural laravel 
Php :: SymfonyComponentHttpKernelExceptionNotFoundHttpException: POST http://localhost/post 
Php :: get product price with thousands separator 
Php :: php count result query 
Php :: remove public url laravel 
Php :: php console lofarray values 
Php :: Laravel validation rule for one item which can be email or phone numbe 
Php :: how to add in massive php 
Php :: setup wp cron from external / cpanel cron service 
Php :: ass 
Php :: where clause with paginate laravel multiple column 
Php :: php post http 
Php :: php: foreach loop 
Php :: undefined variable inside function php 
Php :: ? in php 
Php :: simple php round example 
Php :: how to host a php server 
Php :: php elvis operator 
Php :: setup PDO 
Java :: javafx center node in gridpane 
Java :: import android.support.v7.app.ActionBarActivity; 
Java :: java log base 2 
Java :: Share application “link” in Android 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =