https://github.com/mustafakhaleddev/laravel-atomic
Laravel Admin Panel
https://github.com/mustafakhaleddev/laravel-atomic
Last synced: 11 months ago
JSON representation
Laravel Admin Panel
- Host: GitHub
- URL: https://github.com/mustafakhaleddev/laravel-atomic
- Owner: mustafakhaleddev
- License: mit
- Archived: true
- Created: 2018-12-29T22:46:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T06:43:55.000Z (over 7 years ago)
- Last Synced: 2025-03-30T12:12:50.909Z (over 1 year ago)
- Language: PHP
- Homepage: http://laravel-atomic.mustafakhaled.com
- Size: 2.51 MB
- Stars: 8
- Watchers: 0
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Atomic Panel

# 🚀 Documentation
Atomic Panel full documentation is [here](http://laravel-atomic.mustafakhaled.com).
# 💪 Support Me
Support me in [Patreon](http://patreon.com/mustafakhaled) to help me keep going.
## 🔥 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
* PHP: `^7.0`
* Laravel: `^5.5`
## 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`:
```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
To make admin user:
```php
php artisan atomic:user
```
Then open `https://yourwebsite.domain/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:
```php
/**
* 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
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
### ☝ Step 1
Include `AtomicModel` trait in your model:
```php