X
Create New Item
Item Type :
File
Folder
Item Name :
X
Search Results
vendor
spatie
laravel-package-tools
src
Commands
Concerns
Cancel
Backup
Advanced Editor
Save
<?php namespace Spatie\LaravelPackageTools\Commands\Concerns; trait AskToRunMigrations { protected bool $askToRunMigrations = false; public function askToRunMigrations(): self { $this->askToRunMigrations = true; return $this; } protected function processAskToRunMigrations(): self { if ($this->askToRunMigrations) { if ($this->confirm('Would you like to run the migrations now?')) { $this->comment('Running migrations...'); $this->call('migrate'); } } return $this; } }