File tree 10 files changed +20
-0
lines changed
10 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace Illuminate \Console \Scheduling ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
8
+ #[AsCommand(name: 'schedule:clear-cache ' )]
7
9
class ScheduleClearCacheCommand extends Command
8
10
{
9
11
/**
Original file line number Diff line number Diff line change 6
6
use Illuminate \Console \ConfirmableTrait ;
7
7
use Illuminate \Contracts \Events \Dispatcher ;
8
8
use Illuminate \Database \Events \DatabaseRefreshed ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
use Symfony \Component \Console \Input \InputOption ;
10
11
12
+ #[AsCommand(name: 'migrate:fresh ' )]
11
13
class FreshCommand extends Command
12
14
{
13
15
use ConfirmableTrait;
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Console \Command ;
6
6
use Illuminate \Database \Migrations \MigrationRepositoryInterface ;
7
+ use Symfony \Component \Console \Attribute \AsCommand ;
7
8
use Symfony \Component \Console \Input \InputOption ;
8
9
10
+ #[AsCommand(name: 'migrate:fresh ' )]
9
11
class InstallCommand extends Command
10
12
{
11
13
/**
Original file line number Diff line number Diff line change 10
10
use Illuminate \Database \SQLiteDatabaseDoesNotExistException ;
11
11
use Illuminate \Database \SqlServerConnection ;
12
12
use PDOException ;
13
+ use Symfony \Component \Console \Attribute \AsCommand ;
13
14
use Throwable ;
14
15
15
16
use function Laravel \Prompts \confirm ;
16
17
18
+ #[AsCommand(name: 'migrate ' )]
17
19
class MigrateCommand extends BaseCommand implements Isolatable
18
20
{
19
21
use ConfirmableTrait;
Original file line number Diff line number Diff line change 6
6
use Illuminate \Database \Migrations \MigrationCreator ;
7
7
use Illuminate \Support \Composer ;
8
8
use Illuminate \Support \Str ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
11
+ #[AsCommand(name: 'make:migration ' )]
10
12
class MigrateMakeCommand extends BaseCommand implements PromptsForMissingInput
11
13
{
12
14
/**
Original file line number Diff line number Diff line change 6
6
use Illuminate \Console \ConfirmableTrait ;
7
7
use Illuminate \Contracts \Events \Dispatcher ;
8
8
use Illuminate \Database \Events \DatabaseRefreshed ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
use Symfony \Component \Console \Input \InputOption ;
10
11
12
+ #[AsCommand(name: 'migrate:refresh ' )]
11
13
class RefreshCommand extends Command
12
14
{
13
15
use ConfirmableTrait;
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Console \ConfirmableTrait ;
6
6
use Illuminate \Database \Migrations \Migrator ;
7
+ use Symfony \Component \Console \Attribute \AsCommand ;
7
8
use Symfony \Component \Console \Input \InputOption ;
8
9
10
+ #[AsCommand(name: 'migrate:reset ' )]
9
11
class ResetCommand extends BaseCommand
10
12
{
11
13
use ConfirmableTrait;
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Console \ConfirmableTrait ;
6
6
use Illuminate \Database \Migrations \Migrator ;
7
+ use Symfony \Component \Console \Attribute \AsCommand ;
7
8
use Symfony \Component \Console \Input \InputOption ;
8
9
10
+ #[AsCommand('migrate:rollback ' )]
9
11
class RollbackCommand extends BaseCommand
10
12
{
11
13
use ConfirmableTrait;
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Database \Migrations \Migrator ;
6
6
use Illuminate \Support \Collection ;
7
+ use Symfony \Component \Console \Attribute \AsCommand ;
7
8
use Symfony \Component \Console \Input \InputOption ;
8
9
10
+ #[AsCommand(name: 'migrate:status ' )]
9
11
class StatusCommand extends BaseCommand
10
12
{
11
13
/**
Original file line number Diff line number Diff line change 12
12
use Illuminate \Database \Events \ModelsPruned ;
13
13
use Illuminate \Support \Str ;
14
14
use InvalidArgumentException ;
15
+ use Symfony \Component \Console \Attribute \AsCommand ;
15
16
use Symfony \Component \Finder \Finder ;
16
17
18
+ #[AsCommand(name: 'model:prune ' )]
17
19
class PruneCommand extends Command
18
20
{
19
21
/**
You can’t perform that action at this time.
0 commit comments