PHP code example of innovmt / mt-jetstream-inertia-generator

1. Go to this page and download the library: Download innovmt/mt-jetstream-inertia-generator 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/ */

    

innovmt / mt-jetstream-inertia-generator example snippets


'api' => [
    \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
    ...
],

protected $middleware = [
    ...,
    \innovmt\MTJetstreamInertiaGenerator\Middleware\JigMiddleware::class,
];

protected $middlewareGroups = [
    'web' => [
        ...,
        \innovmt\MTJetstreamInertiaGenerator\Middleware\JigMiddleware::class,
    ],
];

protected $middlewareGroups = [
    'api' => [
        \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
        ...
    ],
];
shell
php artisan vendor:publish --force --provider="innovmt\MTJetstreamInertiaGenerator\JetstreamInertiaGeneratorServiceProvider"
shell
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
shell
php artisan storage:link
shell
php artisan migrate
shell
php artisan jig --help
php artisan jig:generate --help