working on a basic template for all future projects and decided to use Laravel.
The aim is just to create a starting point for any websites I make in the future (basic blog, admin area + user login system).
I was following a tutorial on the CRUD basics and made a simple blog management app. However I wish to put this into an /admin area.
Before, I had this in my route:
Route::resource('blog', 'BlogController');
Which then allowed me to simply use the functions in my BlogController on the domain.com/blog URL.
This is all working, but I want to mask this behind an admin area. I thought I could just move the blog folder with all my blog views in, into a admin folder but hitting route not defined errors.
The views folder is:
- Views
- admin
- blog
- edit.blade.php
- index.blade.php
- new.blade.php
- show.blade.php
- home.blade.php
Before, my blog folder was simply in the views folder itself. What do I need to change to get domain.com/admin/blog working the same as it did before?
Using Laravel 4.2