Change NextKey to create record in Module table if it doesnt exist
This commit is contained in:
@@ -4,9 +4,16 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
use App\Traits\NextKey;
|
||||
|
||||
class Module extends Model
|
||||
{
|
||||
use NextKey;
|
||||
|
||||
const RECORD_ID = 'module';
|
||||
|
||||
protected $table = 'ab_module';
|
||||
public $incrementing = FALSE;
|
||||
public $timestamps = FALSE;
|
||||
|
||||
public function record()
|
||||
|
Reference in New Issue
Block a user