PHP code example of savannabits / jetstream-inertia-generator
1. Go to this page and download the library: Download savannabits/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/ */
savannabits / jetstream-inertia-generator example snippets
'api' => [
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
...
],
protected $middlewareGroups = [
'web' => [
...,
\Savannabits\JetstreamInertiaGenerator\Middleware\JigMiddleware::class,
],
];
protected $middlewareGroups = [
'api' => [
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
...
],
];
Features::profilePhotos(),
public static function dtColumns(): array
{
return [
Column::make('id')->title('ID')->className('all text-right'),
Column::make("name")->className('all'),
Column::make("first_name")->className('none'),
Column::make("last_name")->className('none'),
Column::make("middle_name")->className('none'),
Column::make("username")->className('min-desktop-lg'),
Column::make("email")->className('min-desktop-lg'),
Column::make("gender")->className('min-desktop-lg'),
Column::make("dob")->className('none'),
//Column::make("email_verified_at")->className('min-desktop-lg'),
Column::make("activated")->className('min-desktop-lg'),
Column::make("created_at")->className('min-tv'),
Column::make("updated_at")->className('min-tv'),
Column::make('actions')->className('min-desktop text-right')->orderable(false)->searchable(false),
];
}
shell
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
shell
php artisan vendor:publish --force --provider="Savannabits\JetstreamInertiaGenerator\JetstreamInertiaGeneratorServiceProvider"
shell
php artisan storage:link
shell
php artisan migrate
php artisan db:seed --class SeedAdminRoleAndUser
shell
php artisan migrate
shell
php artisan jig --help
php artisan jig:generate --help