Add initial app models. Add tinker as a dependency to allow use with artisan.
This commit is contained in:
committed by
Paula Quispe
parent
b8fd796e25
commit
6b8065a98f
17
app/Models/Process.php
Normal file
17
app/Models/Process.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Process extends Model
|
||||
{
|
||||
/**
|
||||
* Retrieve all applications that belong to this process
|
||||
*/
|
||||
public function applications()
|
||||
{
|
||||
return $this->hasMany(Application::class, 'PRO_ID', 'PRO_ID');
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user