Example #1
0
 public static function getActivesLangs()
 {
     return Lang::where('active_001', true)->get();
 }
Example #2
0
 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]);
 }