api code global jain
This commit is contained in:
47
app/Models/UserQualification.php
Normal file
47
app/Models/UserQualification.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class UserQualification extends Model
|
||||
{
|
||||
// use SoftDeletes;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'qualification',
|
||||
'university',
|
||||
'highschool',
|
||||
'is_graduate',
|
||||
'is_pursuing',
|
||||
'passing_year',
|
||||
'starting_year',
|
||||
'start_date',
|
||||
'end_date',
|
||||
'privacy',
|
||||
'type',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
'user_id' => 'integer',
|
||||
'qualification_privacy' => 'integer'
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\User::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user