Questions tagged [laravel-translatable]

A Laravel package for translating database contents.

Laravel-Translatable is a localization package for and .

35 questions
0
votes
2 answers

Laravel Translatable factory seeding with dynamic locales

I want to factory seed a translatable model without hardcoding the locales. There are two values that I have to seed, slug which is not translatable, and title which has to be translated to all the languages from the languages table. Here is the…
failedCoder
  • 1,346
  • 1
  • 14
  • 38
0
votes
1 answer

Laravel-translatable - "call to a member function save() on string"

(Updated) I use the laravel-translatable package and trying to insert rows with translations. When trying to save, it gives me the error "call to a member function save() on string". I loop an object with keys and values, like: "food":…
Galivan
  • 4,842
  • 9
  • 44
  • 76
0
votes
0 answers

Multiple inner joins using laravel and translation

I have problem using translatable library, I am trying to sort the companies by name, so as written in the doc, I need to use inner joins, I tried this code, everything is good but the data is messed up when I add voucher_translations, its like it…
Peril
  • 1,569
  • 6
  • 25
  • 42
0
votes
1 answer

Laravel 5.4 Field doesn't have a default value with no use of create

Very strange behavior with save(). I don't use method create. This is the creating new record code: public function store(Request $request) { $this->validate($request,[ 'title' => 'required', 'weight' =>…
SaidbakR
  • 13,303
  • 20
  • 101
  • 195
-1
votes
2 answers

Laravel spatie/laravel-translatable

this my route Route::group( [ 'prefix' => LaravelLocalization::setLocale(), 'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath','auth'] ], function(){ this is working but I want to…
Timur
  • 67
  • 1
  • 1
  • 10
1 2
3