for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Savannabits\JetstreamInertiaGenerator\Helpers;
use Illuminate\Console\Command;
class JigInstaller extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'jig:install';
* The console command description.
protected $description = 'This is an automatic installer for the Jetstream Inertia Generator Package. It will install packages, publish all assets and schedule or run migrations for you.';
* Create a new command instance.
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return int
public function handle()
// Run yarn install,
// Run vendor publish commands
// Add the JigMiddleware to the Kernel
// Publish Sanctum config
// Add sanctum API middleware
// Publish permissions and Roles,
// Run Role Generator
// Run Permission generator
// Run user generator.
return 0;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.