Cree las rutas para la creacion de projectos
This commit is contained in:
15
app/Project.php
Normal file
15
app/Project.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Project extends Model
|
||||
{
|
||||
protected $table = 'projects';
|
||||
|
||||
public function photos()
|
||||
{
|
||||
return $this->hasMany('App\ProjectPhoto');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user