PHPackages                             devdojo/themes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. devdojo/themes

ActiveLibrary[Framework](/categories/framework)

devdojo/themes
==============

This is a themes package for Laravel

0.0.11(1y ago)21161.4k↑69%9[4 issues](https://github.com/thedevdojo/themes/issues)[2 PRs](https://github.com/thedevdojo/themes/pulls)2PHP

Since Mar 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thedevdojo/themes)[ Packagist](https://packagist.org/packages/devdojo/themes)[ RSS](/packages/devdojo-themes/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)DependenciesVersions (15)Used By (2)

DevDojo Themes Package
======================

[](#devdojo-themes-package)

This is a package that will add theme support in your Laravel application

Adding Themes
-------------

[](#adding-themes)

The **themes** package will look inside of the `resources/themes` folder for any folder that has a `.json` file inside of it with the same name. *(You can change the theme folder location in the config)*

As an example if you have a folder called **sample-theme** and inside that folder you have another file called **sample-theme.json** with the following contents:

```
{
    "name": "Sample Theme",
    "version": "1.0"
}

```

This package will detect this as a new theme. You can also include a sample screenshot of your theme, which would be **sample-theme.jpg** *(800x500px) for best results*

In fact, you can checkout the sample-theme repo here:

You can activate this theme by setting the `active` column to 1 for that specific theme. Then use it like:

```
return view('theme::welcome')

```

This will then look in the current active theme folder for a new view called `welcome.blade.php` :D

Theme Configs
-------------

[](#theme-configs)

You may choose to publish a config to your project by running:

```
php artisan vendor:publish

```

You will want to publish the themes config, and you will now see a new config located at `config/themes.php`, which will look like the following:

```
