vendredi 30 décembre 2016

How can I use translate laravel config file

I'm using Laravel 5.3, and I've a config file, which is calling trans() function. When I run php artisan, It will give me an error

Class translator does not exist

This is my config file

<?php

return [
'modules' => [
        'name'      =>  trans('menus.module'),
        'url'       =>  'modules',
    ],
];



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire