NovaPermissionServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Insenseanalytics\LaravelNovaPermission;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class NovaPermissionServiceProvider extends ServiceProvider
8
{
9
	/**
10
	 * Bootstrap any application services.
11
	 */
12
	public function boot()
13
	{
14
		$this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-nova-permission');
15
		$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-nova-permission');
16
17
		$this->publishes([
18
			__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-nova-permission'),
0 ignored issues
show
Bug introduced by
The function resource_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

18
			__DIR__.'/../resources/lang' => /** @scrutinizer ignore-call */ resource_path('lang/vendor/laravel-nova-permission'),
Loading history...
19
		], 'laravel-nova-permission-lang');
20
	}
21
22
	/**
23
	 * Register any application services.
24
	 */
25
	public function register()
26
	{
27
	}
28
}
29