Add initial app models. Add tinker as a dependency to allow use with artisan.

This commit is contained in:
Taylor Dondich
2019-04-25 13:47:21 -07:00
committed by Paula Quispe
parent b8fd796e25
commit 6b8065a98f
8 changed files with 416 additions and 3 deletions

17
app/Models/Process.php Normal file
View 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');
}
}