2015-07-08 03:34:58 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
2017-03-06 17:34:55 -05:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
2019-03-19 17:40:13 -04:00
|
|
|
use Illuminate\Support\Facades\Blade;
|
2015-07-08 03:34:58 -04:00
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
2019-03-19 17:40:13 -04:00
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*/
|
2023-03-13 17:33:19 -04:00
|
|
|
public function register(): void
|
2019-03-19 17:40:13 -04:00
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
2015-07-08 03:34:58 -04:00
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*/
|
2023-03-13 17:33:19 -04:00
|
|
|
public function boot(): void
|
2015-07-08 03:34:58 -04:00
|
|
|
{
|
2017-03-06 17:34:55 -05:00
|
|
|
// Fix for migrations on older versions of mysql and mariadb
|
|
|
|
Schema::defaultStringLength(191);
|
|
|
|
|
|
|
|
// Add the lang blade directive for multi-language support
|
2017-02-06 23:44:07 -05:00
|
|
|
Blade::directive('lang', function($expression) {
|
|
|
|
return "<?php echo Language::select($expression); ?>";
|
|
|
|
});
|
2015-07-08 03:34:58 -04:00
|
|
|
}
|
|
|
|
}
|