PHP code example of masuresh124 / agree-terms
1. Go to this page and download the library: Download masuresh124/agree-terms 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/ */
masuresh124 / agree-terms example snippets
bash
php artisan vendor:publish --provider="Masuresh124\AgreeTerms\Providers\AgreeTermsProvider"
bash
php artisan migrate
javascript
Auth::routes();
Route::middleware(['auth', 'agree-terms'])->group(function () {
Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('dashboard');
});