PHPackages                             jiannius/atom-livewire - 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. jiannius/atom-livewire

ActiveLibrary[Framework](/categories/framework)

jiannius/atom-livewire
======================

Boilerplate for Larave-Livewire

0.51.83(3mo ago)02.9kMITBlade

Since Dec 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/tjloong/atom-livewire)[ Packagist](https://packagist.org/packages/jiannius/atom-livewire)[ RSS](/packages/jiannius-atom-livewire/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (21)Versions (951)Used By (0)

Jiannius Atom
-------------

[](#jiannius-atom)

### Static Site Installation

[](#static-site-installation)

1. Install Laravel

```
composer create-project laravel/laravel
cd
npm install

// You don't need this if using Laravel Forge or Laravel Valet
sudo chown www-data:www-data storage -R
sudo chmod 777 storage -R
sudo chmod 777 bootstrap -R

```

2. Install Atom

```
composer require jiannius/atom-livewire
php artisan atom:install --static --force
npm install

```

3. Enable static site in config/atom.php

```
'static_site' => true,

```

4. Add middleware to app\\Http\\Kernel.php

```
protected $middleware = [
    ...
    \Jiannius\Atom\Http\Middleware\Bootstrap::class, // for site security like https redirect etc
];

```

5. Start development

```
npm run dev

```

### Application Installation

[](#application-installation)

1. Create Database

    First you must create a database for your project in MySQL
2. Install Laravel

```
composer create-project laravel/laravel
cd
npm install

// You don't need this if using Laravel Forge or Laravel Valet
sudo chown www-data:www-data storage -R
sudo chmod 777 storage -R
sudo chmod 777 bootstrap -R

```

3. Update .env with database name

```
DB_DATABASE=
DB_USERNAME=root
DB_PASSWORD=password

```

4. Install Atom

```
composer require jiannius/atom-livewire

```

5. Initialize Atom

```
php artisan atom:init

```

5. Run migration

```
php artisan queue:table        // publish queue table from laravel
php artisan migrate
php artisan atom:migrate base  // migrate atom base tables

```

6. Publish routes. This will copy the base routes from atom to routes/web.php

```
php artisan atom:publish base

```

7. Run npm install

```
npm install

```

8. Add middleware to app\\Http\\Kernel.php

```
protected $middleware = [
    ...
    \Jiannius\Atom\Http\Middleware\Bootstrap::class,
];

```

9. Configure Sentry for error monitoriing (Optional)

```
php artisan sentry:publish --dsn=

// if develop locally, remember to set sentry dsn to null in .env file
// this is to avoid sending error to sentry server in local environment
SENTRY_LARAVEL_DSN=null
SENTRY_TRACES_SAMPLE_RATE=0

```

10. Start development

```
npm run dev

```

### Install Atom Modules

[](#install-atom-modules)

1. Run the migration for the specific module

```
php artisan atom:migrate                // select the module from the list
php artisan atom:migrate app.label      // optionally, if you know the module name

```

2. (Optional) Publish the codes to local for further modification

```
php artisan atom:publish app.label

```

### Modify Livewire\\App\\Settings

[](#modify-livewireappsettings)

1. To modify the app settings, extend `Jiannius\Atom\Http\Livewire\App\Settings\Index.php`, and then change the `getTabsProperty()` method.

```
// app/Http/Livewire/App/Settings/Index.php
