save to codehub
This commit is contained in:
24
app/Models/AdminMaster.php
Normal file
24
app/Models/AdminMaster.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Support\Facades\Crypt;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
|
||||
class AdminMaster extends Authenticatable
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
protected $table = 'admin_masters';
|
||||
|
||||
public function getReview1()
|
||||
{
|
||||
return Crypt::decrypt( $this->review1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user