PHPackages                             mustafakhaleddev/laravel-atomic - 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. [Admin Panels](/categories/admin)
4. /
5. mustafakhaleddev/laravel-atomic

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

mustafakhaleddev/laravel-atomic
===============================

Atomic Admin Panel For Laravel

1.0(7y ago)8265[1 issues](https://github.com/mustafakhaleddev/laravel-atomic/issues)MITPHPPHP ^7.1.3

Since Jan 3Pushed 7y agoCompare

[ Source](https://github.com/mustafakhaleddev/laravel-atomic)[ Packagist](https://packagist.org/packages/mustafakhaleddev/laravel-atomic)[ RSS](/packages/mustafakhaleddev-laravel-atomic/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Atomic Panel
============

[](#atomic-panel)

[![atomic](https://camo.githubusercontent.com/dc9ad0074c7d11040a2ee6dea517d178049b3b7bda03089e45ac839d4e72c023/687474703a2f2f6c61726176656c2d61746f6d69632e6d7573746166616b68616c65642e636f6d2f6173736574732f696d672f70616e656c2e706e67)](https://camo.githubusercontent.com/dc9ad0074c7d11040a2ee6dea517d178049b3b7bda03089e45ac839d4e72c023/687474703a2f2f6c61726176656c2d61746f6d69632e6d7573746166616b68616c65642e636f6d2f6173736574732f696d672f70616e656c2e706e67)

🚀 Documentation
===============

[](#-documentation)

Atomic Panel full documentation is [here](http://laravel-atomic.mustafakhaled.com).

💪 Support Me
============

[](#-support-me)

Support me in [Patreon](http://patreon.com/mustafakhaled) to help me keep going.

🔥 Getting Started
-----------------

[](#-getting-started)

Atomic Panel is a beautifully designed administration panel for Laravel. To make you the most productive developer in the galaxy and give you the opportunity to lead the future.

Requirements
------------

[](#requirements)

- PHP: `^7.0`
- Laravel: `^5.5`

Installation
------------

[](#installation)

Require this package in the `composer.json` of your Laravel project. This will download the package:

```
composer require mustafakhaleddev/laravel-atomic

```

Install AtomicPanel:

```
php artisan atomic:install

```

Add the ServiceProvider in `config/app.php`:

```
'providers' => [
    /*
     * Package Service Providers...
     */
     App\Providers\AtomicServiceProvider::class,
]
```

Published files with installation:

```
-app
   -Providers
     -AtomicServiceProvider.php
__________________________
-config
     -AtomicPanel.php
__________________________
-public
     -vendor
       -atomic
__________________________
-resources
     -views
        -vendor
          -atomic
__________________________

```

#### AtomicPanel

[](#atomicpanel)

To make admin user:

```
php artisan atomic:user
```

Then open `https://yourwebsite.domain/atomic`.

### Authorizing Atomic

[](#authorizing-atomic)

Within your `app/Providers/AtomicServiceProvider.php` file, there is a gate method. This authorization gate controls access to Atomic in non-local environments. By default, any user can access the Atomic Panel when the current application environment is local. You are free to modify this gate as needed to restrict access to your Atomic installation:

```
    /**
     * Register the Atomic gate.
     *
     * This gate determines who can access Atomic in non-local environments.
     *
     * @return void
     */
    protected function gate()
    {
        Gate::define('viewAtomic', function ($user) {
            return in_array($user->email, [
                'atomic@mustafakhaled.com'
            ]);
        });
    }
```

Usage
-----

[](#usage)

Atomic Panel is the best CRUD. It works with Laravel models. If you don't want to use Laravel models, you can create your own pages.

⏰ 3 Steps for Best CRUD
-----------------------

[](#-3-steps-for-best-crud)

### ☝ Step 1

[](#-step-1)

Include `AtomicModel` trait in your model:

```
