Theme 1. Landing Page
Let's say we have a fresh Laravel 5.5 installation with this view.
composer require laraveldaily/theme-downloader php artisan theme:download --theme=landing-pageHere's the result:


Route::get('/', function () { return view('landing-page/welcome'); });And here we go - our Laravel homepage looks like this:


Theme 2. Classimax - Classified Directory
We start by supporting two themes in our version 0.1. So another free Bootstrap-based theme we support is Classimax - a classified directory of companies, but technically you can apply it to any marketplace / e-shop / catalog. We're launching the same command, just with a different theme parameter:php artisan theme:download --theme=classimaxAnd this theme is more complicated than just one landing page - it has multiple pages, with included partials and more assets. So it takes longer to download, but then we have this in resources/views/classimax:


Route::get('/', "ClassimaxController@index")->name('welcome'); Route::get('/blog', "ClassimaxController@indexBlog")->name('blog'); Route::get('/category', "ClassimaxController@indexCategory")->name('category'); Route::get('/dashboard', "ClassimaxController@indexDashboard")->name('dashboard'); Route::get('/single-blog', "ClassimaxController@indexSingleBlog")->name('single-blog'); Route::get('/single-item', "ClassimaxController@indexSingleItem")->name('single-item'); Route::get('/user-profile', "ClassimaxController@indexUserProfile")->name('user-profile');Finally, in routes/web.php the package adds this one line:
include 'classimax.php';Notice: of course, you can change the logic how this route file is loaded - by just copy-pasting its routes to main routes/web.php or registering it in RouteServiceProvider. As a final result, we have this page:

class ClassimaxController extends Controller { public function index(){ return view('classimax.welcome'); } public function indexBlog(){ return view('classimax.blog'); } public function indexCategory(){ return view('classimax.category'); } public function indexDashboard(){ return view('classimax.dashboard'); } public function indexSingleBlog(){ return view('classimax.single-blog'); } public function indexSingleItem(){ return view('classimax.single-item'); } public function indexUserProfile(){ return view('classimax.user-profile'); } }So it's up to you to add your logic for the directory or remove any unnecessary pages.
Where does it all come from?
You probably wonder how we download themes and how it all works, in general. It's pretty straightforward, actually. 1. We've downloaded both themes from their official sources and put into a separate repository:
Speaking of which, we need your opinion! So please try out the package and put in the comment below in the form, we will appreciate it! Any more themes you would like us to support? Or maybe you're a theme creator which you want us to adapt to Laravel? Link to the package again: https://github.com/LaravelDaily/theme-downloader
No comments or questions yet...