public static function getActivesLangs() { return Lang::where('active_001', true)->get(); }
public function ajaxDeleteImage($id) { $object = Lang::find($id); File::delete(public_path() . '/packages/syscover/pulsar/storage/langs/' . $object->image_001); Lang::where('id_001', $id)->update(['image_001' => null]); }