PHPackages                             tianrosandhy/autocrud-laravel - 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. tianrosandhy/autocrud-laravel

ActiveProject[Framework](/categories/framework)

tianrosandhy/autocrud-laravel
=============================

Admin generator auto CRUD based on Laravel.

v1.3.3(3y ago)045[2 PRs](https://github.com/tianrosandhy/cms/pulls)MITPHPPHP ^8.0

Since Jun 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tianrosandhy/cms)[ Packagist](https://packagist.org/packages/tianrosandhy/autocrud-laravel)[ RSS](/packages/tianrosandhy-autocrud-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (16)Versions (31)Used By (0)

Laravel AutoCRUD CMS Generator
==============================

[](#laravel-autocrud-cms-generator)

---

### Installation

[](#installation)

First you need to install just like default laravel (but with tianrosandhy/autocrud-laravel)

```
$ composer create-project tianrosandhy/autocrud-laravel
$ composer install
$ cp .env.example .env
$ php artisan key:generate
```

then setup .env with correct database connection &amp; base APP\_URL

```
$ php artisan migrate
$ php artisan storage:link
```

Last, open via browser for initial setup (superadmin account), then after setup finish, you can open CMS in {base\_url}/p4n3lb04rd to access the CMS

### Workflow

[](#workflow)

- [Generate module scaffolding](#module-scaffolding)
- Register the module service provider to config/modules.php
- Prepare the migration file in modules.
- Generate the datatable &amp; form structure in .app/Modules/{ModuleName}/Http/Structure based on generated migrations (More complete docs will be updated later)
- Setup the sidebar in ./app/Modules/{ModuleName}/Extenders/SidebarGenerator.php
- Override controller or route like usual custom module

### Available Command

[](#available-command)

##### Generate Superadmin

[](#generate-superadmin)

You must run this command first to activate the CMS :

```
php artisan autocrud:superadmin
```

This command will guide you to create an initial superadmin account that have all access in CMS.

##### Module Scaffolding

[](#module-scaffolding)

You can create module easily with this command :

```
$ php artisan autocrud:module {Module Name}
```

```
$ php artisan autocrud:blankmodule {Module Name}
```

Note : module name will be generated in PascalCase without space.

autocrud:module is to generate a full auto crud, and autocrud:blankmodule is to generate a module basic scaffolding without autocrud. Blank module is useful when you want to create a really customized module without AutoCRUD scaffolding. Then, you need to register the new module's service provider to config (config/modules.php) :

```
