hypothetical/app/Providers/AppServiceProvider.php

37 lines
784 B
PHP
Raw Normal View History

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
// Fix for migrations on older versions of mysql and mariadb
Schema::defaultStringLength(191);
// Add the lang blade directive for multi-language support
Blade::directive('lang', function($expression) {
return "<?php echo Language::select($expression); ?>";
});
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}