+ Blade::directive('exposeTranslations', function ($expression) {
+ return "<?php \$__env->startPush('translations'); ?>" .
+ "<?php foreach({$expression} as \$key): ?>" .
+ '<meta name="translation" key="<?php echo e($key); ?>" value="<?php echo e(trans($key)); ?>">' . "\n" .
+ "<?php endforeach; ?>" .
+ '<?php $__env->stopPush(); ?>';
+ });
+
+ // Allow longer string lengths after upgrade to utf8mb4
+ Schema::defaultStringLength(191);
+
+ // Set morph-map due to namespace changes
+ Relation::morphMap([
+ 'BookStack\\Bookshelf' => Bookshelf::class,
+ 'BookStack\\Book' => Book::class,
+ 'BookStack\\Chapter' => Chapter::class,
+ 'BookStack\\Page' => Page::class,
+ ]);
+
+ // View Composers
+ View::composer('partials.breadcrumbs', BreadcrumbsViewComposer::class);