public static function widget($name)
    {
        $builder = static::query();

        return $builder->where('type', 'widget')
                       ->whereRaw('LOWER(name) = ?', [Str::lower($name)])
                       ->first();
    }
public static function widget($name)
    {
        $builder = static::query();

        return $builder->where('type', 'widget')
                       ->whereRaw('LOWER(name) = ?', [Str::lower($name)])
                       ->first();
    }
public static function widget ( $ name ) { $ builder = static :: query ( ) ; return $ builder -> where ( 'type' , 'widget' ) -> whereRaw ( 'LOWER(name) = ?' , [ Str :: lower ( $ name ) ] ) -> first ( ) ; }
Get a widget by name.

@param string $name
@return \Illuminate\Database\Eloquent\Builder|\Yajra\CMS\Entities\Extension
Get a widget by name .