mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-26 00:51:26 -05:00
Pull in fix for laravel 5.4 migrations when using older versions of mysql and mariadb
This commit is contained in:
parent
abfb4a675a
commit
e70dda2e6c
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,7 @@ namespace App\Providers;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Blade;
|
use Illuminate\Support\Facades\Blade;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
@ -14,6 +15,10 @@ class AppServiceProvider extends ServiceProvider
|
||||||
*/
|
*/
|
||||||
public function boot()
|
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) {
|
Blade::directive('lang', function($expression) {
|
||||||
return "<?php echo Language::select($expression); ?>";
|
return "<?php echo Language::select($expression); ?>";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue