Primer commit proyecto Laravel
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
|
||||
class Carrera extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
public function carreraMaterial() : BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Material::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user