22 lines
589 B
PHP
22 lines
589 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models\Admin;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class Testimonial extends Model
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
protected $table = 'testimonials';
|
||
|
|
|
||
|
|
protected $fillable = ['client_name', 'client_image', 'client_designation_company_name', 'description', 'rating', 'is_active'];
|
||
|
|
|
||
|
|
// const path = 'http://jerichoalternatives.in/public/uploads/testimonials/images/';
|
||
|
|
|
||
|
|
public function getClientImageAttribute($value)
|
||
|
|
{
|
||
|
|
return imagePath('public/uploads/testimonials/images/') . $value;
|
||
|
|
}
|
||
|
|
}
|