Category Archives: Voyager

Multi-language Controller

Javascript

 

Menu handler

 

Model example for multilanguage

Model

Controller:

Trait to translate model:

Reference:

  1. https://docs.laravelvoyager.com/core-concepts/multilanguage

Common Statements

 

Method links does not exist error

When using voyager with(‘translations’) and paginate together, this error occurs when creating pagination links.

Original:

Solution:

Solution 2:

 

Reference:

  1. https://laracasts.com/discuss/channels/laravel/links-method-doesnt-exist-after-sortbydesc-on-hasmany