initial commit
This commit is contained in:
17
app/Models/ProfileQuestion.php
Normal file
17
app/Models/ProfileQuestion.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ProfileQuestion extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $fillable = ['question', 'question_type', 'question_options'];
|
||||
|
||||
public function getQuestionOptionsAttribute($value)
|
||||
{
|
||||
return unserialize($value);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user