public function handle($event)
    {
        $needCrop = $event->dataType->rows()
            ->whereType('image')
            ->where('details', 'like', '%cropper%')
            ->exists();

        if ($needCrop) {
            $event->model->cropPhotos($event);
        }
    }
public function handle($event)
    {
        $needCrop = $event->dataType->rows()
            ->whereType('image')
            ->where('details', 'like', '%cropper%')
            ->exists();

        if ($needCrop) {
            $event->model->cropPhotos($event);
        }
    }
public function handle ( $ event ) { $ needCrop = $ event -> dataType -> rows ( ) -> whereType ( 'image' ) -> where ( 'details' , 'like' , '%cropper%' ) -> exists ( ) ; if ( $ needCrop ) { $ event -> model -> cropPhotos ( $ event ) ; } }
Crop the images for a given CRUD.

@param $event

@return void
Crop the images for a given CRUD .