Commit 1b53f974 authored by Ali Kazemi's avatar Ali Kazemi
Browse files

init

parents
{
"name": "spg/test-2",
"type": "library",
"description": "Test 2 Desc",
"license": "MIT",
"authors": [
{
"name": "Ali Kazemi",
"email": "ali.kazemi@synyo.com"
}
],
"autoload": {
"psr-4": {
"Spg\\Test2\\": "src"
}
},
"extra": {
"laravel": {
"providers": [
"Spg\\Test2\\Test2ServiceProvider"
]
}
},
"config": {
"sort-packages": true
}
}
<?php
namespace Spg\Test2\Console;
use Illuminate\Console\Command;
class Test2Command extends Command
{
protected $signature = 'test2';
protected $description = 'test2 description';
public function handle()
{
$this->info("make test2 work");
}
}
<?php
namespace Spg\Test2;
use Illuminate\Support\ServiceProvider;
use Spg\Test2\Console\Test2Command;
class Test2ServiceProvider extends ServiceProvider
{
public function boot()
{
if ($this->app->runningInConsole()) {
$this->commands([
Test2Command::class
]);
}
}
public function register()
{
parent::register();
$this->commands([
Test2Command::class
]);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment