src/Http/Controllers/ThumbnailController.php
public function delete(ThumbnailRequest $request)
    {
        $crudeName = $request->input('crudeName');
        $crude = CrudeInstance::get($crudeName);
        $id = $request->input('model_id');
        $column = $request->input('model_column');

        $model = $crude->deleteThumbnailByIdAndColumn($id, $column);

        return ['model' => $model];
    }
public function delete(ThumbnailRequest $request)
    {
        $crudeName = $request->input('crudeName');
        $crude = CrudeInstance::get($crudeName);
        $id = $request->input('model_id');
        $column = $request->input('model_column');

        $model = $crude->deleteThumbnailByIdAndColumn($id, $column);

        return ['model' => $model];
    }
public function delete ( ThumbnailRequest $ request ) { $ crudeName = $ request -> input ( 'crudeName' ) ; $ crude = CrudeInstance :: get ( $ crudeName ) ; $ id = $ request -> input ( 'model_id' ) ; $ column = $ request -> input ( 'model_column' ) ; $ model = $ crude -> deleteThumbnailByIdAndColumn ( $ id , $ column ) ; return [ 'model' => $ model ] ; }
delete thumbnail file
@author Wojciech Jurkowski <w.jurkowski@holonglobe.com>
delete thumbnail file