public function where($key, $value)
    {
        return collect($this->all()->where($key, $value)->first());
    }
public function where($key, $value)
    {
        return collect($this->all()->where($key, $value)->first());
    }
public function where ( $ key , $ value ) { return collect ( $ this -> all ( ) -> where ( $ key , $ value ) -> first ( ) ) ; }
Get modules based on where clause.

@param string $key
@param mixed  $value

@return \Illuminate\Support\Collection
Get modules based on where clause .