So I created a static About Us page for my theme in phpVMS 7. Here is the code in the app/routes/web.php file:
Route::get('/about', function () { return view('about.about'); });
It’s just a very simple function to return a view as this is the only way I know how to do it at this time. So my views folder for my template has (template name)/About (folder)/about.blade.php and it works but it seems confusing to me. Should I have named the file index.blade.php and put it in the About folder. Seems like this is how other blade templates are referred too in the code?
Thanks, guess I’ll just try it and see if it works! So instead of what i have now it would look like this:
Route::get('/about', function () { return view('about.index'); });
So look in the theme folder and then the About folder and return the view index.blade.php!