Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 399 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 399 Revision 621
Zeile 836... Zeile 836...
836
     * @param  array  $array
836
     * @param  array  $array
837
     * @return array
837
     * @return array
838
     */
838
     */
839
    public static function whereNotNull($array)
839
    public static function whereNotNull($array)
840
    {
840
    {
841
        return static::where($array, function ($value) {
841
        return static::where($array, fn ($value) => ! is_null($value));
842
            return ! is_null($value);
-
 
843
        });
-
 
844
    }
842
    }
Zeile 845... Zeile 843...
845
 
843
 
846
    /**
844
    /**
847
     * If the given value is not an array and not null, wrap it in one.
845
     * If the given value is not an array and not null, wrap it in one.