Skip to content

Instantly share code, notes, and snippets.

@qadirpervez
Last active March 17, 2022 21:01
Show Gist options
  • Save qadirpervez/27e4444ce1214fb409329aa99f649c16 to your computer and use it in GitHub Desktop.
Save qadirpervez/27e4444ce1214fb409329aa99f649c16 to your computer and use it in GitHub Desktop.
Install Command In Laravel
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class AppInstaller extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'command:name';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment