Coder Social home page Coder Social logo

Comments (16)

bpocallaghan avatar bpocallaghan commented on July 21, 2024

Morning @gautham718
Will double check quick.
But I think it is the Models/NavigationAdmin.php - missing relationship.

Give me a couple of minutes...

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

Hi @gautham718

Please get the latest NavigationAdmin

I am going to download the latest zip and install it to make sure it will work.
Thanks

from laravel-admin-starter.

gautham718 avatar gautham718 commented on July 21, 2024

Yes, It worked. Thanks !!!!

And could you please guide me how to configure that to work in a folder inside document root.

http://localhost/addclarity/

Now the folders are listing when i load that URL and if i load http://localhost/addclarity/public/ then CSS and JS missing

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

Is it on Windows?
If so, are you using wamp or xampp or something else?

I personally use Windows + wamp

If you want - you can send me a mail to help you out in more detail? bpocallaghan @ gmail

from laravel-admin-starter.

gautham718 avatar gautham718 commented on July 21, 2024

I am on linux (ubuntu 17.04, php 5.6, mysql 5.7 & apache 2.4)

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

Setup Virtual Host

The above is for windows - but I think it will push you in the right direction.
I will see if I can find some articles for Linux

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

@gautham718

This article seems to cover everything.
You will see some similarities between my gist and this article

Article

Please shout if you have any questions.
Unfortunately my Linux knowledge is limited.

from laravel-admin-starter.

gautham718 avatar gautham718 commented on July 21, 2024

Thank you so much

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

My Pleasure.

All this 'virtual host setup' does is to allow you to enter something like 'addclarity.dev' in your browser and not use localhost/addclarity
This makes it easier to define the 'base' url of your website and not have to worry about css / js not loading as you can just go <img src="/images/myimage.png"/> (to always prefix the '/')

However this does have an effect if you will deploy it to a 'sub folder' on a server, for example it will be example.com/folder instead of example.com - If that makes sense.

The other option is to add a 'base' meta in your head in your html w3schools add base tag
This will allow you to add the base url as 'http://localhost/addclarity/public/' And then the css / js should be without the '/' in front of the path / src of css / js / images.
<img src="/images/myimage.png"/> should become <img src="images/myimage.png"/> when you have the 'base' meta

Will close it in a bit - but please shout when you have any questions / struggle with something.

from laravel-admin-starter.

gautham718 avatar gautham718 commented on July 21, 2024

Hi,
Upon setting the Virtual host for addclarity.com the frontend pages are working fine but, when i load http://addclarity.com/admin

the following error is thrown

"Oops - unique url, please fix at TitanAdminController::setselectedNavigation()"

But http://addclarity.com/auth/login is working

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

Awesome - hope you like the virtual host setup - Took me a bit to get used to but very nice!

Okys, That is because it did not find any items in the navigation_admin table.

  • Check in your .env file that the APP_URL=http://addclarity.com
  • Have a look at the table - navigation_admin - if there are any entries (if not, run php artisan db:seed again)

That should hopefully fix it (basically its not finding any navigation from the database)

If it does not - go to TitanAdminController::setselectedNavigation() it will be in /vendor/bpocallaghan/titan/src/controllers
and just do a dd($nav) at around here NavigationController

I still need to work a bit on cleaning up the 'titan' package for the 'core / utility classes' :)

Usually the database is empty or the app_url is different from what laravel's request is.
The first two lines in that function
$url = $this->getCurrentUrl(); $sections = $this->getCurrentUrlSections();
Can also just dump them if it does not work to see 'why' it is not matching any navigation on the 'slug'

from laravel-admin-starter.

gautham718 avatar gautham718 commented on July 21, 2024

Thanks !! yes, I forgot to change the APP_URL

Thanks again, and sorry for taking your time

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

Awesome. Glad its working now. Nope, I am just happy that fellow developers are taking an interest in it.
I hope you like it - please shout when you have any questions - happy to help

from laravel-admin-starter.

gautham718 avatar gautham718 commented on July 21, 2024

Thanks !!

Is it possible to manage the page content from backend now, I couldn't locate the link for that.

And one more thing, I was not able to log in using the following credentials mentioned in the installation steps.

[email protected]
admin

But this worked

[email protected]
github

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on July 21, 2024

Thanks for pointing it out - Updated the readme file.
If you look at /database/seeds/UserTableSeeder.php - The initial users gets created from this file (so you can remove all of them and add one for yourself)

Mmmm. Unfortunately not.
This is not a full CMS with a website page builder. You can only manage the navigation (all the urls and html title / description of the page) But you will manually have to create the page yourself.

Might be easier to have a look for yourself.
/routes/web.php - At the top of the file you will see all the urls defined for the Website.
They all link to a Controller - most to /app/Http/Controllers/Website/PagesController

I hope that helps. The page builder is in my todo list tho.
If I understand correctly - you might be more interested into something like Asgard CMS

from laravel-admin-starter.

gautham718 avatar gautham718 commented on July 21, 2024

Thanks

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.