public function findOrFalse($field, $name) {
        $module = ModuleModel::where($field, $name)->first();
        return !is_null($module) ? $module : false;
    }
public function findOrFalse($field, $name) {
        $module = ModuleModel::where($field, $name)->first();
        return !is_null($module) ? $module : false;
    }
public function findOrFalse ( $ field , $ name ) { $ module = ModuleModel :: where ( $ field , $ name ) -> first ( ) ; return ! is_null ( $ module ) ? $ module : false ; }
Find one record from model

@param string $field
@param string $name
@return object|false
Find one record from model