Framework: Blade bug with @lang directive

Created on 4 Sep 2019  路  1Comment  路  Source: laravel/framework

  • Laravel Version: 6.0.0
  • PHP Version: 7.2.19

Description:

On Laravel 6, using @lang directive will throw ViewException. (Method Illuminate\Translation\Translator::getFromJson does not exist).
Because @lang directive renders as app('translator')->getFromJson('...') which was removed in this update.

Steps To Reproduce:

Simply try to use @lang directive with not existing key.

Most helpful comment

Try tun run php artisan view:clear - it should solve the problem.

>All comments

Try tun run php artisan view:clear - it should solve the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamborJan picture JamborJan  路  3Comments

PhiloNL picture PhiloNL  路  3Comments

klimentLambevski picture klimentLambevski  路  3Comments

digirew picture digirew  路  3Comments

RomainSauvaire picture RomainSauvaire  路  3Comments