Well found another way. Still probably not the best way but it's holding. Made a method in my Module to get the missing translations of the current module. Just a simple array difference between the ID's of the currently translated language_id 's and all the language_id's in the Languages table.
Must be a more efficient way though right? But guess it does get the job done for now.
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Language;
class Module extends Model
{
protected $fillable = ['position'];
protected $dates = ['release_date'];
public function translations()
{
return $this->hasMany('App\ModuleTranslation');
}
public function missingTranslations()
{
$languageIDs = Language::all()->pluck('id')->toArray();
$translatedIDs = ModuleTranslation::where('module_id', $this->id)->get()->pluck('language_id')->toArray();
$missingTranslations = Language::find(array_diff($languageIDs, $translatedIDs));
return $missingTranslations;
}
}