PHP code example of sammyjo20 / wagonwheel

1. Go to this page and download the library: Download sammyjo20/wagonwheel 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/ */

    

sammyjo20 / wagonwheel example snippets


use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Sammyjo20\Wagonwheel\Concerns\SaveForOnlineViewing;

class BookingConfirmed extends Mailable
{
    use Queueable, SerializesModels, SaveForOnlineViewing;
    
    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->subject('Booking Confirmed 🎉')
            ->markdown('emails.bookings.confirmed');
    }
}
shell
php artisan vendor:publish --tag=wagonwheel-migrations
shell
php artisan migrate
shell
php artisan vendor:publish --tag=wagonwheel-config
shell
php artisan vendor:publish --tag=wagonwheel-views