Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Voyager.php // setting function #4764

Merged
merged 2 commits into from Mar 10, 2020
Merged

Update Voyager.php // setting function #4764

merged 2 commits into from Mar 10, 2020

Conversation

jehadja
Copy link
Contributor

@jehadja jehadja commented Feb 17, 2020

the method all() does not order the settings keys according to the admin sort.
example if someone wants to loop some settings with exact order will be difficult example,
Create Setting Social Media -- it has many keys Facebook, Twitter, Instagram, etc...
@foreach(setting('socaillinks') as $keySocail => $valueSocail )
@if($valueSocail)


  • @endif
    @Endforeach
    i will not be ordered as in admin
    so i think it better as we have admin order to have this option also on setting function !

    thanks a lot

    the method all() does not order the settings keys according to the admin sort.
    example if someone wants to loop some settings with exact order will be difficult example,
    Create Setting Social Media -- it has many keys Facebook, Twitter, Instagram, etc...
                        @foreach(setting('socaillinks') as $keySocail => $valueSocail )
                        @if($valueSocail)
                        <li><a href="{{$valueSocail}}"><i class="fab fa-{{$keySocail}}"></i></a></li>
                        @endif
                        @Endforeach
    i will not be ordered as in admin 
    so i think it better as we have admin order to have this option also on setting function ! 
    
    thanks a lot
    @emptynick emptynick self-assigned this Mar 10, 2020
    @emptynick emptynick changed the base branch from 1.3 to 1.4 March 10, 2020 21:35
    @codecov
    Copy link

    codecov bot commented Mar 10, 2020

    Codecov Report

    Merging #4764 into 1.4 will not change coverage by %.
    The diff coverage is 100.00%.

    Impacted file tree graph

    @@            Coverage Diff            @@
    ##                1.4    #4764   +/-   ##
    =========================================
      Coverage     60.37%   60.37%           
      Complexity     1370     1370           
    =========================================
      Files           194      194           
      Lines          3990     3990           
    =========================================
      Hits           2409     2409           
      Misses         1581     1581           
    Impacted Files Coverage Δ Complexity Δ
    src/Voyager.php 77.95% <100.00%> (ø) 55.00 <0.00> (ø)

    Continue to review full report at Codecov.

    Legend - Click here to learn more
    Δ = absolute <relative> (impact), ø = not affected, ? = missing data
    Powered by Codecov. Last update 52b772e...5349c7a. Read the comment docs.

    1 similar comment
    @codecov
    Copy link

    codecov bot commented Mar 10, 2020

    Codecov Report

    Merging #4764 into 1.4 will not change coverage by %.
    The diff coverage is 100.00%.

    Impacted file tree graph

    @@            Coverage Diff            @@
    ##                1.4    #4764   +/-   ##
    =========================================
      Coverage     60.37%   60.37%           
      Complexity     1370     1370           
    =========================================
      Files           194      194           
      Lines          3990     3990           
    =========================================
      Hits           2409     2409           
      Misses         1581     1581           
    Impacted Files Coverage Δ Complexity Δ
    src/Voyager.php 77.95% <100.00%> (ø) 55.00 <0.00> (ø)

    Continue to review full report at Codecov.

    Legend - Click here to learn more
    Δ = absolute <relative> (impact), ø = not affected, ? = missing data
    Powered by Codecov. Last update 52b772e...5349c7a. Read the comment docs.

    @emptynick emptynick merged commit cef64db into thedevdojo:1.4 Mar 10, 2020
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    2 participants