composed project, added packages, models, controllers, seeders, mirgations etc.
This commit is contained in:
25
app/Providers/JournalServiceProvider.php
Normal file
25
app/Providers/JournalServiceProvider.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Services\Journal\Journal;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class JournalServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register services.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->singleton('journal', Journal::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
class_alias(Journal::class, 'Journal');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user