-
Notifications
You must be signed in to change notification settings - Fork 4
5. Theming
Ryan Winchester edited this page Mar 14, 2016
·
4 revisions
To make your own theme from scratch id pretty simple.
Add theme.php
<?php
return [
'name' => 'clean-creative',
'version' => '0.0.1',
'views' => __DIR__.'/views',
'assets' => __DIR__.'/assets',
];
blade views | variables available |
---|---|
home | |
page | |
posts.index | Collection $posts |
posts.show | Post $post |
posts.category | Category $category, Collection $posts |
posts.tag | Tag $tag, Collection $posts |
posts.author | Author $author, Collection $posts |
Fork and edit the example repo.
Make sure you edit theme.php
and composer.json
!
Make a packagist package out of it.
Installing a theme using the packagist name (e.g. vendor/theme
):
php artisan flashtag:install-theme vendor/theme