Zemke / starter-laravel-angular

Laravel and AngularJS Starter Application Boilerplate featuring Laravel 5.3 and AngularJS 1.5.8
https://starter-laravel-angular.herokuapp.com
Other
369 stars 119 forks source link

Different templates #38

Closed jonaths closed 7 years ago

jonaths commented 8 years ago

Hi Zemke. I want to add another layout for some views. Specifically I modified layout.blade.php to offer an admin like view with a sidebar and some other useful stuff. However this view makes no sense if the user is not logged in. As it is now the route auth/login shows the login fields inside the admin view. Id like to add a new almost blank view for some routes such as '/', '/auth/login and 'auth/signup', however I cant find out how to do this. In normal laravel blade stuff I usually did this with the @extends directive but I dont want to rely on laravel for the front end. Could you give me some guide? Thanks.

Zemke commented 8 years ago

Maybe $routeProvider is what you’re looking for.

Zemke commented 7 years ago

Closing due to no further response.