Commit 72523145 authored by Ali Kazemi's avatar Ali Kazemi
Browse files

init

parents
{
"name": "spg/test-1",
"description": "A Laravel package for test-1.",
"type": "library",
"keywords": ["laravel", "package"],
"license": "MIT",
"authors": [
{
"name": "Ali Kazemi",
"email": "ali.kazemi@synyo.com"
}
],
"require": {
"php": "^7.2",
"laravel/framework": "^7.0"
},
"autoload": {
"psr-4": {
"Spg\\Test1\\": "src/"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
<?php
namespace Spg\Test1\Console;
use Illuminate\Console\Command;
class Test1Command extends Command
{
protected $signature = 'test1';
protected $description = 'Prints "Hello World" from the test-1 package';
public function handle()
{
$this->info('Hello World from the test-1 package!');
}
}
<?php
use Illuminate\Support\ServiceProvider;
use Spg\Test1\Console\Test1Command;
class Test1ServiceProvider extends ServiceProvider
{
public function boot()
{
$this->commands([
Test1Command::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