PHP code example of mstfkhazaal / filament-jet

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

    

mstfkhazaal / filament-jet example snippets


'auth' => [
    'guard' => env('FILAMENT_AUTH_GUARD', 'web'),
    'pages' => [
        'login' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\Login::class,
    ],
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::login([
        'card_width' => 'md',
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::login([
        'has_brand' => true,
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::login([
        'card_width' => 'md',
        'has_brand' => true,
        'rate_limiting' => [
            'enabled' => true,
            'limit' => 5,
        ],
        'pipelines' => [],
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::updateProfileInformation(),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::profilePhotos(),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::updatePasswords([
    //     ...
    // ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::updatePasswords([
        'askCurrentPassword' => false,
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::twoFactorAuthentication([
        'authentication' => [
            'session_prefix' => 'filament.',
            'card_width' => 'md',
            'has_brand' => true,
            'rate_limiting' => [
                'enabled' => true,
                'limit' => 5,
            ],
        ],
        'confirm' => true,
        'toggleRecoveryCodesVisibilityWithConfirmPassword' => true,
        // 'window' => 0,
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::twoFactorAuthentication([
    //     ...
    // ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::twoFactorAuthentication([
        // ...
        'toggleRecoveryCodesVisibilityWithConfirmPassword' => false,
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::logoutOtherBrowserSessions(),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::accountDeletion(),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::personalDataExport([
    //    'export-name' => 'personal-data',
    //    'add' => [
            // ['nameInDownload' => '', 'content' => []]
    //    ],
    //    'add-files' => [
            // ['pathToFile' => '', 'diskName' => '', 'directory' => '']
    //    ],
    // ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::teams([
        'invitations' => false,
        'middleware' => [],
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::api(),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::termsAndPrivacyPolicy(),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::registration([
    //     'page' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\Register::class,
    //     'terms_of_service' => \Mstfkhazaal\FilamentJetstream\Http\Livewire\TermsOfService::class,
    //     'privacy_policy' => \Mstfkhazaal\FilamentJetstream\Http\Livewire\PrivacyPolicy::class,
    //     'card_width' => 'md',
    //     'has_brand' => true,
    //     'rate_limiting' => [
    //         'enabled' => true,
    //         'limit' => 5,
    //     ],
    // ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    // Features::resetPasswords([
    //     'request' => [
    //         'page' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\PasswordReset\RequestPasswordReset::class,
    //         'card_width' => 'md',
    //         'has_brand' => true,
    //         'rate_limiting' => [
    //             'enabled' => true,
    //             'limit' => 5,
    //         ],
    //     ],
    //     'reset' => [
    //         'page' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\PasswordReset\ResetPassword::class,
    //         'card_width' => 'md',
    //         'has_brand' => true,
    //         'rate_limiting' => [
    //             'enabled' => true,
    //             'limit' => 5,
    //         ],
    //     ],
    // ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
     Features::registration([
        'page' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\Register::class,
        'terms_of_service' => \Mstfkhazaal\FilamentJetstream\Http\Livewire\TermsOfService::class,
        'privacy_policy' => \Mstfkhazaal\FilamentJetstream\Http\Livewire\PrivacyPolicy::class,
        'card_width' => 'md',
        'has_brand' => true,
        'rate_limiting' => [
            'enabled' => true,
            'limit' => 5
        ],
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::registration([
        // ...
        'terms_of_service' => YourTermsOfServiceComponent::class,
        'privacy_policy' => YourPrivacyPolicyComponent::class,
        // ...
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::resetPasswords([
        'request' => [
            'page' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\PasswordReset\RequestPasswordReset::class,
            // ...
        ],
        'reset' => [
            'page' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\PasswordReset\ResetPassword::class,
            // ...
        ],
    ]),
],

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable implements MustVerifyEmail
{
    // ...
}

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::emailVerification([
        // ...
    ]),
],

use Mstfkhazaal\FilamentJetstream\Features;

'features' => [
    Features::emailVerification([
        'page' => \Mstfkhazaal\FilamentJetstream\Filament\Pages\Auth\EmailVerification\EmailVerificationPrompt::class,
        'controller' => \Mstfkhazaal\FilamentJetstream\Http\Controllers\Auth\EmailVerificationController::class,
        'card_width' => 'md',
        'has_brand' => true,
        'rate_limiting' => [
            'enabled' => true,
            'limit' => 5
        ],
    ]),
],
bash
php artisan filament-jet:install
bash
php artisan vendor:publish --tag="filament-jet-views"