File tree Expand file tree Collapse file tree 6 files changed +30
-8
lines changed Expand file tree Collapse file tree 6 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 99use Illuminate \Support \Facades \File ;
1010use Illuminate \Support \Facades \Process ;
1111use Native \Laravel \Support \Environment ;
12+ use Symfony \Component \Console \Attribute \AsCommand ;
1213
1314use function Laravel \Prompts \error ;
1415use function Laravel \Prompts \info ;
1718use function Laravel \Prompts \outro ;
1819use function Laravel \Prompts \select ;
1920
21+ #[AsCommand(
22+ name: 'native:debug ' ,
23+ description: 'Generate debug information required for opening an issue. ' ,
24+ )]
2025class DebugCommand extends Command implements PromptsForMissingInput
2126{
2227 protected $ signature = 'native:debug {output} ' ;
2328
24- protected $ description = 'Generate debug information required for opening an issue. ' ;
25-
2629 private Collection $ debugInfo ;
2730
2831 public function handle (): void
Original file line number Diff line number Diff line change 44
55use Illuminate \Database \Console \Migrations \FreshCommand as BaseFreshCommand ;
66use Native \Laravel \NativeServiceProvider ;
7+ use Symfony \Component \Console \Attribute \AsCommand ;
78
9+ #[AsCommand(
10+ name: 'native:migrate:fresh ' ,
11+ description: 'Drop all tables and re-run all migrations in the NativePHP development environment ' ,
12+ )]
813class FreshCommand extends BaseFreshCommand
914{
1015 protected $ name = 'native:migrate:fresh ' ;
Original file line number Diff line number Diff line change 44
55use Illuminate \Console \Command ;
66use Native \Laravel \Contracts \ProvidesPhpIni ;
7+ use Symfony \Component \Console \Attribute \AsCommand ;
78
9+ #[AsCommand(
10+ name: 'native:php-ini ' ,
11+ description: 'Load the PHP configuration for the NativePHP development environment ' ,
12+ )]
813class LoadPHPConfigurationCommand extends Command
914{
1015 protected $ signature = 'native:php-ini ' ;
Original file line number Diff line number Diff line change 33namespace Native \Laravel \Commands ;
44
55use Illuminate \Console \Command ;
6+ use Symfony \Component \Console \Attribute \AsCommand ;
67
8+ #[AsCommand(
9+ name: 'native:config ' ,
10+ description: 'Load the startup configuration for the NativePHP development environment ' ,
11+ )]
712class LoadStartupConfigurationCommand extends Command
813{
914 protected $ signature = 'native:config ' ;
Original file line number Diff line number Diff line change 66use Illuminate \Database \Console \Migrations \MigrateCommand as BaseMigrateCommand ;
77use Illuminate \Database \Migrations \Migrator ;
88use Native \Laravel \NativeServiceProvider ;
9+ use Symfony \Component \Console \Attribute \AsCommand ;
910
11+ #[AsCommand(
12+ name: 'native:migrate ' ,
13+ description: 'Run the database migrations in the NativePHP development environment ' ,
14+ )]
1015class MigrateCommand extends BaseMigrateCommand
1116{
12- protected $ description = 'Run the database migrations in the NativePHP development environment ' ;
13-
1417 public function __construct (Migrator $ migrator , Dispatcher $ dispatcher )
1518 {
1619 $ this ->signature = 'native: ' .$ this ->signature ;
Original file line number Diff line number Diff line change 44
55use Illuminate \Database \Console \Seeds \SeedCommand as BaseSeedCommand ;
66use Native \Laravel \NativeServiceProvider ;
7+ use Symfony \Component \Console \Attribute \AsCommand ;
78
9+ #[AsCommand(
10+ name: 'native:seed ' ,
11+ description: 'Seed the database in the NativePHP development environment ' ,
12+ )]
813class SeedDatabaseCommand extends BaseSeedCommand
914{
10- protected $ name = 'native:db:seed ' ;
11-
12- protected $ description = 'Run the database seeders in the NativePHP development environment ' ;
13-
1415 public function handle ()
1516 {
1617 (new NativeServiceProvider ($ this ->laravel ))->rewriteDatabase ();
You can’t perform that action at this time.
0 commit comments