PHP code example of capsulescodes / inertia-mailable
1. Go to this page and download the library: Download capsulescodes/inertia-mailable library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
capsulescodes / inertia-mailable example snippets
use Illuminate\Support\Facades\Route;
use App\Mail\InertiaMailableInstalled;
Route::get( '/render', fn() => ( new InertiaMailableInstalled( "Mailable World" ) )->render() );
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Mail;
use App\Mail\InertiaMailableInstalled;
Route::get( '/send', function(){ Mail::to( '[email protected]' )->send( new InertiaMailableInstalled( "Mailable World" ) ); } );