oidre/superadmin

:Admin Template Tailwind

dev-master 2020-09-08 04:39 UTC

This package is auto-updated.

Last update: 2024-05-08 12:58:00 UTC


README

Latest Version on Packagist Total Downloads Build Status

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require oidre/superadmin

Usage

Step 1

Install Tailwind CSS

$ yarn add tailwindcss

Step 2

Publish Vendor

$ php artisan vendor:publish --tag=superadmin

Step 3

Add superadmin.js into resources/js/app.js

require('./superadmin');

Add _superadmin.scss into resources/sass/app.scss

@import 'superadmin';

Step 4

Add tailwind.config.js into webpack.mix.js

const tailwindcss = require('tailwindcss');
.
.
.
mix.js('resources/js/app.js', 'public/js')
  .sass('resources/sass/app.scss', 'public/css')
  .options({
    processCssUrls: false,
    postCss: [tailwindcss('./tailwind.config.js')],
  });

Step 5

$ yarn install && yarn run dev

Step 6

Add compiled css & js into main layout

<link rel="stylesheet" href="{{ asset('css/app.css') }}">
<script src="{{ asset('js/app.js') }}"></script>

Step 7

Just embed wrapper component inside body tag

<x-sa.wrapper/>

Step 8

Enjoy!

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.