PHP code example of redeyed / sentinel-laravel

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

    

redeyed / sentinel-laravel example snippets


use Redeyed\LaravelSentinel\Rules\Sentinel;

$request->validate([
    // ...your other rules...
    'sentinel-token' => ['

$request->validate([
    'sentinel-token' => ['
bash
php artisan vendor:publish --tag=sentinel-config
blade
<form method="POST" action="/register">
    @csrf

    {{-- ...your fields... --}}

    <x-sentinel-captcha />

    <button type="submit">Submit</button>
</form>