dimanche 2 décembre 2018

Laravel Localization with API Call

I'm working with Laravel 5.6 and RestApi. Doing this project for giving multilangual support. But in api call unable to access Language data. Can anyone help please?

For example in Api call:

class UserApiController extends Controller
{
    public function removeUser( Request $request )
    {
      $success = __('success_messages.remove_success');
    }
}

In above example __('success_messages.remove_success'), this portion of code not working.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire