protected function slideIndex()
 {
     return Slide::where('estado', 'A')->where('tipo', 'I')->orderBy('id', 'desc')->first();
 }
Example #2
0
 public function slideIndex()
 {
     return Slide::where('estado', 'A')->where('tipo', 'I')->where('seccion_id', $this->id)->first();
 }