TemplateLibrary.php 344 B

12345678910111213141516
  1. <?php
  2. namespace App\Http\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class TemplateLibrary extends Model
  5. {
  6. protected $primaryKey = 'id';
  7. protected $table = 'template_library';
  8. public function templateLibraryRelation()
  9. {
  10. return $this->hasMany(TemplateLibraryRelation::class, 'template_library_id', 'id');
  11. }
  12. }