PHPackages                             showapp/laravue-core - 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. showapp/laravue-core

ActiveLibrary

showapp/laravue-core
====================

A Laravel package to provide a beatiful datashboard built by VueJS and Element-UI

0.4.4(1y ago)025MITVuePHP ^8.0.2|^8.1|^8.2

Since Mar 18Pushed 1y agoCompare

[ Source](https://github.com/ShowappSoftware/laravue-core)[ Packagist](https://packagist.org/packages/showapp/laravue-core)[ RSS](/packages/showapp-laravue-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (22)Used By (0)

Laravue Core
============

[](#laravue-core)

The Laravel package to provide core functionalities for a beautiful [Laravel dashboard](https://laravue.dev)

Demo:

 [![](https://camo.githubusercontent.com/7d97211cbf9430e579747d32d4df0e2cf12ee454da182ed32a79b3afe6a94c81/68747470733a2f2f636f72652e6c6172617675652e6465762f696d616765732f6c6172617675652d636f72652e6a7067)](https://camo.githubusercontent.com/7d97211cbf9430e579747d32d4df0e2cf12ee454da182ed32a79b3afe6a94c81/68747470733a2f2f636f72652e6c6172617675652e6465762f696d616765732f6c6172617675652d636f72652e6a7067)

Getting Started
---------------

[](#getting-started)

[Laravue](https://github.com/tuandm/laravue) provides necessary Element UI and rich features for an enterprise admin dashboard, therefore it's highly recommended to use for starting a project. The following instructions are for intergrating core features of Laravue to existing Laravel project or to experiement with it.

### Prerequisites

[](#prerequisites)

[Laravue](https://github.com/tuandm/laravue) is built on top of [Laravel](https://laravel.com) and so you have to check [Laravel's system requirement](https://laravel.com/docs/5.8/installation#server-requirements) and make sure your your [NodeJS](https://nodejs.org/en/) is ready before starting.

### Installing

[](#installing)

Install laravue-core package with `composer`

```
composer require tuandm/laravue-core

```

#### 1.a Setup Laravue with all-in-one command

[](#1a-setup-laravue-with-all-in-one-command)

```
php artisan laravue:setup

```

This command will do these steps:

- Setup JWT secret and API endpoint
- Publish Laravue vendor packages/assets
- Install NPM dependencies
- Create .babelc file (if it doesn't exist)
- Setup webpack.mix.js (please backup this file to make sure the current setting will not be lost)

[![Laravue setup](https://camo.githubusercontent.com/35b5b5e0a535e5c244788547bee9ecd85822c658b3548f9aaaf8bd7dee75c375/68747470733a2f2f636f72652e6c6172617675652e6465762f696d616765732f6c6172617675652e676966)](https://camo.githubusercontent.com/35b5b5e0a535e5c244788547bee9ecd85822c658b3548f9aaaf8bd7dee75c375/68747470733a2f2f636f72652e6c6172617675652e6465762f696d616765732f6c6172617675652e676966)

#### 1.b Manual setup

[](#1b-manual-setup)

It's recommended to use [laravue:setup command](#setup-laravue). If you want to manually install, you can do following setps:

##### .env file

[](#env-file)

Generate JWT secret for authentication

```
php artisan jwt:secret

```

Add these two lines to `.env` file

```
  BASE_API=/api
  MIX_BASE_API="${BASE_API}"

```

##### Publish vendor packages/assets

[](#publish-vendor-packagesassets)

```
php artisan vendor:publish --provider="Tuandm\Laravue\ServiceProvider" --tag="laravue-core"
php artisan vendor:publish --provider="Tuandm\Laravue\ServiceProvider" --tag="laravue-asset"

```

##### Add NPM dependencies

[](#add-npm-dependencies)

```
npm add babel-plugin-syntax-dynamic-import babel-plugin-syntax-jsx babel-plugin-transform-vue-jsx eslint eslint-loader eslint-plugin-vue laravel-mix-eslint vue-template-compiler svg-sprite-loader --save-dev

npm add element-ui js-cookie normalize.css nprogress vuex vue-count-to vue-i18n vue-router

npm install # To make sure everything is set

```

Please check [package.json sample](https://github.com/tuandm/laravue-core/tree/master/package.json.sample)

##### Webpack.mix.js configuration

[](#webpackmixjs-configuration)

We need to modify the webpack.mix.js to work with Laravue package, please refer to [webpack.mix.js sample](https://github.com/tuandm/laravue-core/tree/master/webpack.mix.js.sample)

Or simply run this command to generate recommendation version.

```
php artisan laravue:webpack

```

##### Babel

[](#babel)

Laravue requires babel to build the packages. Usually, `.babelrc` will be generated with [laravue:setup command](#setup-laravue). Please manual add required plugins to `.babelrc` file if your project already uses it. Sample `.babelrc` can be found [here](https://github.com/tuandm/laravue-core/tree/master/.babelrc.sample)

#### 2. Config API guard

[](#2-config-api-guard)

Open `config/auth.php` and modify as below

```
    # Change default auth guard to api
    'defaults' => [
        'guard' => 'api',
    ],
    ...
    # Use JWT driver for api guard
    'guards' => [
    ....
    'api' => [
        'driver' => 'jwt',
    ....

    # Use Laravue User model to authenticate
    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => Tuandm\Laravue\User::class,
        ],

```

Please refer to [auth.php sample](https://github.com/tuandm/laravue-core/tree/master/src/config/auth.php.sample)

#### 3. Database

[](#3-database)

Laravue core requires `users.role` field, consider to run migration if neccessary

```
php artisan migrate

```

#### 4. Sample data

[](#4-sample-data)

This database seeder will insert 3 test users, you can ignore this step if you have data already.

```
php artisan db:seed --class=Tuandm\\Laravue\\Database\\Seeds\\DatabaseSeeder

```

### Start development

[](#start-development)

```
npm run dev # or npm run watch

```

### Build production

[](#build-production)

```
npm run production

```

Running the tests
-----------------

[](#running-the-tests)

- Tests system is under development.

Built with
----------

[](#built-with)

- [Laravel](https://laravel.com/) - The PHP Framework For Web Artisans
- [VueJS](https://vuejs.org/) - The Progressive JavaScript Framework
- [Element](https://element.eleme.io/) - A Vue 2.0 based component library for developers, designers and product managers
- [Vue Admin Template](https://github.com/PanJiaChen/vue-admin-template) - A minimal vue admin template with Element UI

Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/tuandm/laravue-core/tags).

Authors
-------

[](#authors)

- **Tuan Duong** - *Initial work* - [tuandm](https://github.com/tuandm)

See also the list of [contributors](https://github.com/tuandm/laravue-core/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details

Acknowledgements
----------------

[](#acknowledgements)

- [Laravue](https://laravue.dev) - A beautiful dashboard for Laravel built by VueJS and ElementUI
- [vue-element-admin](https://panjiachen.github.io/vue-element-admin/#/) A magical vue admin which insprited Laravue project
- [tui.editor](https://github.com/nhnent/tui.editor) - Markdown WYSIWYG Editor
- [Echarts](http://echarts.apache.org/) - A powerful, interactive charting and visualization library for browser

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance44

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 69.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~237 days

Recently: every ~439 days

Total

10

Last Release

472d ago

PHP version history (3 changes)0.3.1PHP ^7.1.3

0.4.2PHP ^8.0.2

0.4.4PHP ^8.0.2|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/10a86f62700463c33136d05df7b21b2c4608ef2b0ab8ecdf9befc45e4593cffd?d=identicon)[showapp](/maintainers/showapp)

---

Top Contributors

[![tuandm](https://avatars.githubusercontent.com/u/490446?v=4)](https://github.com/tuandm "tuandm (44 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![ShowappSoftware](https://avatars.githubusercontent.com/u/49631525?v=4)](https://github.com/ShowappSoftware "ShowappSoftware (8 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")[![ravenKaisar](https://avatars.githubusercontent.com/u/16849877?v=4)](https://github.com/ravenKaisar "ravenKaisar (1 commits)")

### Embed Badge

![Health badge](/badges/showapp-laravue-core/health.svg)

```
[![Health](https://phpackages.com/badges/showapp-laravue-core/health.svg)](https://phpackages.com/packages/showapp-laravue-core)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
