Download the PHP package zrkb/nexus without Composer
On this page you can find all versions of the php package zrkb/nexus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nexus
Nexus
Nexus is an Admin Panel based on Laravel Framework
Installation
Requirements
- Composer
- Laravel Framework 6.x/7.x/8.x
- Laravel Mix
- Node.js & NPM
Installing Nexus
Run the following command in your console terminal:
Or if you want to download the files, add the following configuration to the composer.json file:
Now run:
Database Credentials
Next make sure to create a new database and add your database credentials to your .env
file:
Run the installer
Finally, run the install command and migrate Artisan commands.
Admin User
In order to create an user for the admin panel, run the next command:
Admin User Provider
Your admin user must subclass from Nexus Admin Model, you can change this in nexus.php
config file:
Usage
Defining resources
You may want to generate a new resource using the nexus:crud
Artisan command:
This will create the following files:
Note: You may want to run
php artisan migrate
command to create the table in the database.
Register Resources
Once the resource are created, we need to add them to the project:
1. Add route
Edit your routes/web.php
and the new resource:
or the equivalent:
2. Add to sidebar
Edit your resources/views/vendor/nexus/sidebar/user.blade.php
file and add the code below:
That's all! You may refresh your dashboard page and you'll see a new item in the sidebar, click on it and explore your new resource.
Todo
- [x] Assign permissions automatically to role Developer when creating a resource
- [x] Add middleware for auth routes redirect when login
- [x] Migration file stub
- [ ] Menus Admin
- [ ] Media Library Admin
- [ ] Conditionals for stubs files (Case: not all models will use SoftDelete feature)
- [ ] Analyze Scaffold vs Runtime Gen
- [ ] Separate blog as a package
Security
If you discover any security related issues, please use the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of nexus with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
konekt/html Version ^6.5
spatie/laravel-activitylog Version ^3.8|^4.0
spatie/laravel-permission Version ^3.0|^4.0|^5.0|^6.0
plank/laravel-mediable Version ^3.0|^4.0|^5.0|^6.0
laravel/ui Version ^1.0|^2.0|^3.0|^4.0