admin slider

This commit is contained in:
merdan 2020-04-06 17:52:01 +05:00
parent eb720104bf
commit d890daee44
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class Slider extends Model
// protected $primaryKey = 'id';
// public $timestamps = false;
// protected $guarded = ['id'];
protected $fillable = ['title','text','image','active','link','title_ru','_title_tk'];
protected $fillable = ['text_tk','text_ru','image','active','link','title_ru','_title_tk'];
// protected $hidden = [];
// protected $dates = [];
@ -62,7 +62,7 @@ class Slider extends Model
public function getTextAttribute(){
return $this->{'text_'.Config::get('app.locale')}??'#title_transation';
return $this->{'text_'.Config::get('app.locale')}??'#text_transation';
}
public function setImageAttribute($value)

View File

@ -20,7 +20,7 @@
background-size: cover; bottom: -100px; background-image:
url({{asset($slider->image)}}); transform: unset !important;"></div>
<!-- End Parallax Image -->
<div>
<div class="slider-content">
{{$slider->text}}
</div>
<a href="{{$slider->link ?? '#'}}" class="d-block container g-py-200 h-100"></a>