File tree Expand file tree Collapse file tree 10 files changed +20
-0
lines changed
Expand file tree Collapse file tree 10 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 33namespace Illuminate \Console \Scheduling ;
44
55use Illuminate \Console \Command ;
6+ use Symfony \Component \Console \Attribute \AsCommand ;
67
8+ #[AsCommand(name: 'schedule:clear-cache ' )]
79class ScheduleClearCacheCommand extends Command
810{
911 /**
Original file line number Diff line number Diff line change 66use Illuminate \Console \ConfirmableTrait ;
77use Illuminate \Contracts \Events \Dispatcher ;
88use Illuminate \Database \Events \DatabaseRefreshed ;
9+ use Symfony \Component \Console \Attribute \AsCommand ;
910use Symfony \Component \Console \Input \InputOption ;
1011
12+ #[AsCommand(name: 'migrate:fresh ' )]
1113class FreshCommand extends Command
1214{
1315 use ConfirmableTrait;
Original file line number Diff line number Diff line change 44
55use Illuminate \Console \Command ;
66use Illuminate \Database \Migrations \MigrationRepositoryInterface ;
7+ use Symfony \Component \Console \Attribute \AsCommand ;
78use Symfony \Component \Console \Input \InputOption ;
89
10+ #[AsCommand(name: 'migrate:fresh ' )]
911class InstallCommand extends Command
1012{
1113 /**
Original file line number Diff line number Diff line change 1010use Illuminate \Database \SQLiteDatabaseDoesNotExistException ;
1111use Illuminate \Database \SqlServerConnection ;
1212use PDOException ;
13+ use Symfony \Component \Console \Attribute \AsCommand ;
1314use Throwable ;
1415
1516use function Laravel \Prompts \confirm ;
1617
18+ #[AsCommand(name: 'migrate ' )]
1719class MigrateCommand extends BaseCommand implements Isolatable
1820{
1921 use ConfirmableTrait;
Original file line number Diff line number Diff line change 66use Illuminate \Database \Migrations \MigrationCreator ;
77use Illuminate \Support \Composer ;
88use Illuminate \Support \Str ;
9+ use Symfony \Component \Console \Attribute \AsCommand ;
910
11+ #[AsCommand(name: 'make:migration ' )]
1012class MigrateMakeCommand extends BaseCommand implements PromptsForMissingInput
1113{
1214 /**
Original file line number Diff line number Diff line change 66use Illuminate \Console \ConfirmableTrait ;
77use Illuminate \Contracts \Events \Dispatcher ;
88use Illuminate \Database \Events \DatabaseRefreshed ;
9+ use Symfony \Component \Console \Attribute \AsCommand ;
910use Symfony \Component \Console \Input \InputOption ;
1011
12+ #[AsCommand(name: 'migrate:refresh ' )]
1113class RefreshCommand extends Command
1214{
1315 use ConfirmableTrait;
Original file line number Diff line number Diff line change 44
55use Illuminate \Console \ConfirmableTrait ;
66use Illuminate \Database \Migrations \Migrator ;
7+ use Symfony \Component \Console \Attribute \AsCommand ;
78use Symfony \Component \Console \Input \InputOption ;
89
10+ #[AsCommand(name: 'migrate:reset ' )]
911class ResetCommand extends BaseCommand
1012{
1113 use ConfirmableTrait;
Original file line number Diff line number Diff line change 44
55use Illuminate \Console \ConfirmableTrait ;
66use Illuminate \Database \Migrations \Migrator ;
7+ use Symfony \Component \Console \Attribute \AsCommand ;
78use Symfony \Component \Console \Input \InputOption ;
89
10+ #[AsCommand('migrate:rollback ' )]
911class RollbackCommand extends BaseCommand
1012{
1113 use ConfirmableTrait;
Original file line number Diff line number Diff line change 44
55use Illuminate \Database \Migrations \Migrator ;
66use Illuminate \Support \Collection ;
7+ use Symfony \Component \Console \Attribute \AsCommand ;
78use Symfony \Component \Console \Input \InputOption ;
89
10+ #[AsCommand(name: 'migrate:status ' )]
911class StatusCommand extends BaseCommand
1012{
1113 /**
Original file line number Diff line number Diff line change 1212use Illuminate \Database \Events \ModelsPruned ;
1313use Illuminate \Support \Str ;
1414use InvalidArgumentException ;
15+ use Symfony \Component \Console \Attribute \AsCommand ;
1516use Symfony \Component \Finder \Finder ;
1617
18+ #[AsCommand(name: 'model:prune ' )]
1719class PruneCommand extends Command
1820{
1921 /**
You can’t perform that action at this time.
0 commit comments