To display an error while using Laravel Artisan the official Laravel 5.8 documentation says:
$this->error('Something went wrong!');
But what's the context of $this
?
Following is the contents of the seeder class file:
use Illuminate\Database\Seeder;
class PopulateMyTable extends Seeder
{
public function run()
{
$this->info("Console should show this message");
}
}