File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- class PackageServiceProvider extends \Illuminate \Support \ServiceProvider
3+ namespace Rayiumir \LaravelPackage \ServiceProvider ;
4+
5+ use Illuminate \Support \ServiceProvider ;
6+ use Package ;
7+
8+ class PackageServiceProvider extends ServiceProvider
49{
5- public function register (){}
6- public function boot (){}
10+ public function register (): void
11+ {
12+ $ this ->app ->bind ('Package ' , function () {
13+ return new Package ();
14+ });
15+ }
16+
17+ public function boot (): void
18+ {
19+ $ this ->_publishes ();
20+ }
21+
22+ private function _publishes (): void
23+ {
24+ $ this ->publishes ([
25+ __DIR__ .'/../Console/Commands ' => app_path ('Console/Commands/ ' )
26+ ],'LaravelPackageCommands ' );
27+
28+ $ this ->publishes ([
29+ __DIR__ .'/../Providers ' => app_path ('Providers/ ' )
30+ ],'LaravelPackageProviders ' );
31+ }
732}
You can’t perform that action at this time.
0 commit comments