How to get search value from translated table in laravel?
up vote
0
down vote
favorite
I have an activity table with id in it and activity translated table where all the translated dated are store along with activity_id. I want to get eloquent from this relationship where activity name is given language below is my migration Schema::create('activity_types', function (Blueprint $table) { $table->increments('id'); $table->boolean('flag'); $table->timestamps(); }); Schema::create('activity_type_translations', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('slug'); $table->string('description'); $table->integer('activity_type_id')->unsigned(); $table->string('locale')->index(); $table->timestamps(); $...