PHP code example of mindtwo / appointable

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

    

mindtwo / appointable example snippets


use mindtwo\Appointable\Facades\Appointable;

// Register the default appointment routes
Appointable::routes();

Appointable::routes('my-appointments', ['auth']);

Appointable::routes('appointments', ['auth', 'verified']);

return [
    'middleware' => ['web'],
];
bash
   php artisan vendor:publish --provider="mindtwo\Appointable\Providers\AppointableServiceProvider" --tag="appointable-config"
   php artisan vendor:publish --provider="mindtwo\Appointable\Providers\AppointableServiceProvider" --tag="appointable-migrations"
   
bash
   php artisan migrate
   
bash
php artisan vendor:publish --provider="mindtwo\Appointable\Providers\AppointableServiceProvider" --tag="appointable-migrations"
bash
php artisan migrate