Coder Social home page Coder Social logo

Comments (3)

bpocallaghan avatar bpocallaghan commented on June 22, 2024

Hi @informas
Thanks for giving this project a try.
Do you mind look at your database - 'navigation_admin' table
Related issues issue, issue

If you want to dig into the code, you can try to do
Open up TitanAdminController (the base controller of all admin controllers)
Go to Line ~230. You can then dd($this->resource) or dd($this->selectedNavigation)
And see what you get. The function is setSelectedNavigation()

It usually is one of these.

  1. Navigation entries not in the database
  2. The function I just mentioned $this->getCurrentUrl() is returning an incorrect path

Please let me know if this is not working,

from laravel-admin-starter.

informas avatar informas commented on June 22, 2024

Hi,

thanks about your response and excuse me for the delay in mi answer...

With your suggests I check .env file and detects that in APP_URL missing the protocol:

APP_URL=larastarter.loc.al

I changes it to:

APP_URL=**http://**larastarter.loc.al

and that solves my problem!

May be?

I've tried it several times and it seems to be the problem and the solution.

Thanks,

Jorge

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on June 22, 2024

Hi Jorge.
No worries, mmm.
Can you perhaps find the file TitanAdminController and do a dd($url) in that setSelectedNavigation() function.
In short, I just want to see what the 'get current url / get url sections' are as it splits the url on the 'slugs' and then tries to find the slugs/path in the database.
So I just want to see what the url is, and then we can see what the issue is (why the slugs do not match)

Please shout if that does not make sense or have some info :)

Feel free to add me on skype if you want "bpocallaghan"

Goodluck

from laravel-admin-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.