mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
32 lines
742 B
PHP
32 lines
742 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Support\Facades\Blade;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
// 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); ?>";
|
|
});
|
|
}
|
|
}
|