Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class Obra extends Model
- {
- protected $table='obras';
- protected $primaryKey='id';
- protected $fillable=['name_obra'];
- public function facturas(){
- return $this->belongsToMany('App\Factura');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement