예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->model = config(static::CONFIG_PREFIX . '.model');
 }
예제 #2
0
 public function adminDeletePost()
 {
     $model = $this->getModel();
     $id = Request::input('id');
     $item = $model::findOrFail($id);
     GalleryImage::where('table_name', $this->getPackageName())->where('id_row', $id)->delete();
     $this->deleteDirectory('uploads/' . $this->getRoutePrefix() . '/' . $id);
     return parent::adminDeletePost();
 }