@@ -3,43 +3,43 @@ |
||
| 3 | 3 | use Illuminate\Support\ServiceProvider; |
| 4 | 4 | |
| 5 | 5 | class ActivityLogServiceProvider extends ServiceProvider {
|
| 6 | - /** |
|
| 7 | - * Indicates if loading of the provider is deferred. |
|
| 8 | - * |
|
| 9 | - * @var bool |
|
| 10 | - */ |
|
| 11 | - protected $defer = false; |
|
| 6 | + /** |
|
| 7 | + * Indicates if loading of the provider is deferred. |
|
| 8 | + * |
|
| 9 | + * @var bool |
|
| 10 | + */ |
|
| 11 | + protected $defer = false; |
|
| 12 | 12 | |
| 13 | - /** |
|
| 14 | - * Bootstrap the application events. |
|
| 15 | - * |
|
| 16 | - * @return void |
|
| 17 | - */ |
|
| 18 | - public function boot() |
|
| 19 | - {
|
|
| 13 | + /** |
|
| 14 | + * Bootstrap the application events. |
|
| 15 | + * |
|
| 16 | + * @return void |
|
| 17 | + */ |
|
| 18 | + public function boot() |
|
| 19 | + {
|
|
| 20 | 20 | $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
| 21 | 21 | $this->publishes([ |
| 22 | - __DIR__ . '/../config/acivity-log.php' => config_path('activity-log.php'),
|
|
| 22 | + __DIR__ . '/../config/acivity-log.php' => config_path('activity-log.php'),
|
|
| 23 | 23 | ]); |
| 24 | - } |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Register the service provider. |
|
| 28 | - * |
|
| 29 | - * @return void |
|
| 30 | - */ |
|
| 31 | - public function register() |
|
| 32 | - {
|
|
| 26 | + /** |
|
| 27 | + * Register the service provider. |
|
| 28 | + * |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 31 | + public function register() |
|
| 32 | + {
|
|
| 33 | 33 | $this->mergeConfigFrom(__DIR__ . '/../config/activity-log.php', 'activity-log'); |
| 34 | - } |
|
| 34 | + } |
|
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * Get the services provided by the provider. |
|
| 38 | - * |
|
| 39 | - * @return array |
|
| 40 | - */ |
|
| 41 | - public function provides() |
|
| 42 | - {
|
|
| 36 | + /** |
|
| 37 | + * Get the services provided by the provider. |
|
| 38 | + * |
|
| 39 | + * @return array |
|
| 40 | + */ |
|
| 41 | + public function provides() |
|
| 42 | + {
|
|
| 43 | 43 | return []; |
| 44 | - } |
|
| 44 | + } |
|
| 45 | 45 | } |
@@ -5,10 +5,10 @@ discard block |
||
| 5 | 5 | |
| 6 | 6 | class CreateActivityLogTable extends Migration { |
| 7 | 7 | /** |
| 8 | - * Run the migrations. |
|
| 9 | - * |
|
| 10 | - * @return void |
|
| 11 | - */ |
|
| 8 | + * Run the migrations. |
|
| 9 | + * |
|
| 10 | + * @return void |
|
| 11 | + */ |
|
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | 14 | Schema::create('activity_log', function(Blueprint $table) |
@@ -35,10 +35,10 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | - * Reverse the migrations. |
|
| 39 | - * |
|
| 40 | - * @return void |
|
| 41 | - */ |
|
| 38 | + * Reverse the migrations. |
|
| 39 | + * |
|
| 40 | + * @return void |
|
| 41 | + */ |
|
| 42 | 42 | public function down() |
| 43 | 43 | { |
| 44 | 44 | Schema::drop('activity_log'); |