sebastienheyd / boilerplate

Laravel AdminLTE 3 Boilerplate package with blade components, users, roles and permissions management
MIT License
219 stars 66 forks source link

Error when add lang #34

Closed bonaxcrimo closed 3 years ago

bonaxcrimo commented 3 years ago

I have error like this when add lang

https://flareapp.io/share/17WgKG87#F79

When i check because this line

$title = sprintf('

%s

', /* @scrutinizer ignore-type / __($title));

sebastienheyd commented 3 years ago

Do you have a file named Category.php in your lang folder ?

The error comes from the function __() that is a function from Laravel. If you have a file Category.php with an array of translations into it, Laravel will think that you call the array in Category.php instead of a simple string.

bonaxcrimo commented 3 years ago

yes sir,error because i don't use lang in menu just simple string