change TestType & TestResult

This commit is contained in:
Fayyazi
2019-07-15 13:41:05 +04:30
parent d3735c6d30
commit 969f8b8b45
7 changed files with 91 additions and 35 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Item extends Model
{
public $fillable = [];
public function packages()
{
return $this->belongsToMany('App\Package', 'item_package');
}
}
// Schema::create('role_user', function (Blueprint $table) {
//
// $table->integer('user_id')->unsigned();
//
// $table->integer('role_id')->unsigned();
//
// $table->foreign('user_id')->references('id')->on('users')
//
// ->onDelete('cascade');
//
// $table->foreign('role_id')->references('id')->on('roles')
//
// ->onDelete('cascade');
//
// });