directive available in setting package
This commit is contained in:
parent
eb53a7484e
commit
f78237f7ce
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use Blade;
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Schema;
|
use Schema;
|
||||||
|
|
||||||
@ -17,11 +16,6 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
// Laravel db fix
|
// Laravel db fix
|
||||||
Schema::defaultStringLength(191);
|
Schema::defaultStringLength(191);
|
||||||
|
|
||||||
// Add setting directive
|
|
||||||
Blade::directive('setting', function ($expression) {
|
|
||||||
return "<?php echo setting($expression); ?>";
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user