<?php

namespace Illuminate\Console;

use Illuminate\Support\ServiceProvider;
// my name space
class ScheduleServiceProvider extends ServiceProvider
{// ScheduleService Provider extends ServiceProvider
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;// deferred is delay for the provider
// indicates if loading of the provider is deferred.

/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->commands('Illuminate\Console\Scheduling\ScheduleRunCommand');
}// Register the service provider.
// use a api register function ,that is the commands

/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
'Illuminate\Console\Scheduling\ScheduleRunCommand',
];
}// Get the services provided by the provider.
// Get a provides instance
}