1. Go to this page and download the library: Download laradic/service-provider library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
class MyServiceProvider extends \Laradic\ServiceProvider\ServiceProvider {
// Will look for all commands inside the 'Console' directory relative to this service provider
protected $findCommands = ['Console'];
}
class MyServiceProvider extends \Laradic\ServiceProvider\ServiceProvider {
// Register by FQN
protected $commands = [Console\MyCommand::class];
// or by custom binding name
protected $commands = ['commands.my.command' => Console\MyCommand::class];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.