public static function findBySlug($slug,$languageSlug = "")
    {
        $getMenuLink = array_where(
            MenuLink::all(), function ($value) use ($slug) {
                return ($value['slug'] == $slug);
            }
        );

        if($getMenuLink) {
            return array_first($getMenuLink);
        }
        return false;
    }
public static function findBySlug($slug,$languageSlug = "")
    {
        $getMenuLink = array_where(
            MenuLink::all(), function ($value) use ($slug) {
                return ($value['slug'] == $slug);
            }
        );

        if($getMenuLink) {
            return array_first($getMenuLink);
        }
        return false;
    }
public static function findBySlug ( $ slug , $ languageSlug = "" ) { $ getMenuLink = array_where ( MenuLink :: all ( ) , function ( $ value ) use ( $ slug ) { return ( $ value [ 'slug' ] == $ slug ) ; } ) ; if ( $ getMenuLink ) { return array_first ( $ getMenuLink ) ; } return false ; }
Get menulink by slug.

@param $slug
@param string $languageSlug

@return bool|mixed
@throws \Exception
Get menulink by slug .