Commit 2de3c975 authored by Viral Solani's avatar Viral Solani

Reslove blade compilation error for laravel 5.8

parent 37ad12d0
...@@ -20,14 +20,14 @@ class BladeServiceProvider extends ServiceProvider ...@@ -20,14 +20,14 @@ class BladeServiceProvider extends ServiceProvider
/** /**
* Register any misc. blade extensions. * Register any misc. blade extensions.
*/ */
public function register() public function boot()
{ {
/* /*
* The block of code inside this directive indicates * The block of code inside this directive indicates
* the chosen language requests RTL support. * the chosen language requests RTL support.
*/ */
Blade::directive('langRTL', function () { Blade::if('langrtl', function ($session_identifier = 'lang-rtl') {
return "<?php if (session()->has('lang-rtl')): ?>"; return session()->has($session_identifier);
}); });
} }
} }
...@@ -1303,16 +1303,16 @@ ...@@ -1303,16 +1303,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v5.8.3", "version": "v5.8.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "d36d74acd3added5abbe7e7a84342b54bb0b0521" "reference": "d651f8bd25c6baf7ae4913bc51f02849fad4e925"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/d36d74acd3added5abbe7e7a84342b54bb0b0521", "url": "https://api.github.com/repos/laravel/framework/zipball/d651f8bd25c6baf7ae4913bc51f02849fad4e925",
"reference": "d36d74acd3added5abbe7e7a84342b54bb0b0521", "reference": "d651f8bd25c6baf7ae4913bc51f02849fad4e925",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1446,7 +1446,7 @@ ...@@ -1446,7 +1446,7 @@
"framework", "framework",
"laravel" "laravel"
], ],
"time": "2019-03-05T13:51:19+00:00" "time": "2019-03-12T13:33:14+00:00"
}, },
{ {
"name": "laravel/socialite", "name": "laravel/socialite",
......
...@@ -191,7 +191,7 @@ return [ ...@@ -191,7 +191,7 @@ return [
App\Providers\AccessServiceProvider::class, App\Providers\AccessServiceProvider::class,
App\Providers\AppServiceProvider::class, App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class, App\Providers\AuthServiceProvider::class,
//App\Providers\BladeServiceProvider::class, App\Providers\BladeServiceProvider::class,
//App\Providers\BroadcastServiceProvider::class, //App\Providers\BroadcastServiceProvider::class,
App\Providers\ComposerServiceProvider::class, App\Providers\ComposerServiceProvider::class,
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
......
...@@ -19,11 +19,12 @@ ...@@ -19,11 +19,12 @@
<!-- Check if the language is set to RTL, so apply the RTL layouts --> <!-- Check if the language is set to RTL, so apply the RTL layouts -->
<!-- Otherwise apply the normal LTR layouts --> <!-- Otherwise apply the normal LTR layouts -->
@langRTL @langrtl
{{ Html::style(getRtlCss(mix('css/backend.css'))) }} {{ Html::style(getRtlCss(mix('css/backend.css'))) }}
@else @else
{{ Html::style(mix('css/backend.css')) }} {{ Html::style(mix('css/backend.css')) }}
@endif @endlangrtl
{{ Html::style(mix('css/backend-custom.css')) }} {{ Html::style(mix('css/backend-custom.css')) }}
@yield('after-styles') @yield('after-styles')
......
...@@ -20,11 +20,12 @@ ...@@ -20,11 +20,12 @@
<!-- Check if the language is set to RTL, so apply the RTL layouts --> <!-- Check if the language is set to RTL, so apply the RTL layouts -->
<!-- Otherwise apply the normal LTR layouts --> <!-- Otherwise apply the normal LTR layouts -->
@langRTL @langrtl
{{ Html::style(getRtlCss(mix('css/frontend.css'))) }} {{ Html::style(getRtlCss(mix('css/frontend.css'))) }}
@else @else
{{ Html::style(mix('css/frontend.css')) }} {{ Html::style(mix('css/frontend.css')) }}
@endif @endlangrtl
{!! Html::style('js/select2/select2.min.css') !!} {!! Html::style('js/select2/select2.min.css') !!}
@yield('after-styles') @yield('after-styles')
......
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
<!-- Check if the language is set to RTL, so apply the RTL layouts --> <!-- Check if the language is set to RTL, so apply the RTL layouts -->
<!-- Otherwise apply the normal LTR layouts --> <!-- Otherwise apply the normal LTR layouts -->
@langRTL @langrtl
{{ Html::style(getRtlCss(mix('css/backend.css'))) }} {{ Html::style(getRtlCss(mix('css/backend.css'))) }}
@else @else
{{ Html::style(mix('css/backend.css')) }} {{ Html::style(mix('css/backend.css')) }}
@endif @endlangrtl
{!! Html::style('css/custom-style.css') !!} {!! Html::style('css/custom-style.css') !!}
@yield('after-styles-end') @yield('after-styles-end')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment