trsdesign / trs-admin-dev
Frontend scaffolding package for Laravel
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^7.3|^8.0
- ext-json: *
- illuminate/support: ^8.0
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is not auto-updated.
Last update: 2024-12-17 10:52:55 UTC
README
Introduction
TRS Admin is a frontend scaffolding package for Laravel, allowing you publish an index
or show
blade file for a specified resource. TRS Admin has component presets for both Tailwind CSS and Bootstrap.
Installation
To install this package into your project, run the follow command in your console:
composer require trsdesign/trs-admin
Once the package is installed, along with all it's dependencies, you should run the install command, specifying the CSS framework you wish to use. E.g.
php artisan trs-admin:install tailwind
This will update and install the required node dependencies for the given CSS framework publish the trs-admin.php
config file and the resources/views/layouts
with inline class styles matching your chosen CSS framework.
After this, you will need to install and build your frontend assets:
npm install && npm run dev
Usage
Usage of this package is quick, simple and easy - there's just one command to run! To get started, run the following example command:
php artisan trs-admin:view users
After running, you will need to answer a few questions before the files are published:
- What type of view do you want to make? [index, show]
- What layout should this view extend? [app, guest]
- What will the main content be? [table, form]
After answering these questions, a new file will be published to your resources/views
folder in the {resource}/{viewType}.blade.php
format. E,g,
users/index.blade.php