You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
690 B
31 lines
690 B
<?php
|
|
|
|
namespace Luthfi\CrudGenerator;
|
|
|
|
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
|
|
|
|
/**
|
|
* Crud Generator Service Provider Class.
|
|
*/
|
|
class ServiceProvider extends BaseServiceProvider
|
|
{
|
|
public function register()
|
|
{
|
|
if ($this->app->runningInConsole()) {
|
|
$this->commands([
|
|
CrudMake::class,
|
|
CrudSimpleMake::class,
|
|
CrudApiMake::class,
|
|
]);
|
|
}
|
|
|
|
$this->mergeConfigFrom(__DIR__.'/config.php', 'simple-crud');
|
|
}
|
|
|
|
public function boot()
|
|
{
|
|
$this->publishes([
|
|
__DIR__.'/config.php' => config_path('simple-crud.php'),
|
|
], 'config');
|
|
}
|
|
}
|