MrJuliuss / syntara

Admin package for Laravel 4.
MIT License
302 stars 77 forks source link

Can't login to dashboard / How to add subject navigation bar (add new) #142

Closed ifolk closed 10 years ago

ifolk commented 10 years ago

Hello, Mr Juliuss

I first time to use laravel4. I don't know why can't login to dashboard "Sorry, login failed... check your credentials." $ php artisan create:user username email password Admin (php artisan create:user "my user" "my email" password Admin) and i create password in database That right?

Thank you

MrJuliuss commented 10 years ago

Hi, you need to add your password in this line php artisan create:user username email password Admin not in the database ;)

ifolk commented 10 years ago

Ok. Thank you for your help.

ifolk commented 10 years ago

Excuse me!! I rookie and I have another question. I don't understand "Pass in 2 views, ‘left-nav’ and ‘right-nav’. These add links to the left or right of the navigation bar."

Where to add and use this code?

View left-nav.blade.php example :

View::composer('syntara::layouts.dashboard.master', function($view) { $view->nest('navPages', 'left-nav'); $view->nest('navPagesRight', 'right-nav'); }); View left-nav.blade.php example : <li class=""><a href=""><i class="glyphicon glyphicon-home"></i> <span>Home</span></a></li> <li class="dropdown" > <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-home"></i> <span>Blog</span></a> <ul class="dropdown-menu"> <li><a href="">Articles</a></li> <li><a href="">Comments</a></li> </ul> </li>

Thank you for your kindness.

MrJuliuss commented 10 years ago

Hi, you can put it in controllers,, routes.php file, but the right way is to add a composer.php file (http://forumsarchive.laravel.io/viewtopic.php?id=12144)

ifolk commented 10 years ago

Ok, I get it , Thank you so much

MrJuliuss commented 10 years ago

;)