The laravel-vue scaffold is a template repository usable for new projects that rely on Laravel and Vue. This scaffold combines the two in such a way that they work together efficiently and without issue. Laravel handling the back-end, API and database connections, while Vue handles the front-end, routing and API calls to the back-end.
- Laravel
- Vue
- SCSS
- Tailwind
- MySQL
You can use this scaffold by pulling it and changing the git remote, or by using composer install dynamatrix/laravel-vue
.
You can find the scaffold on packagist.
- MySQL database (MariaDB is recommended) with database and user:
$ sudo apt update
$ sudo apt install mariadb-server
$ sudo mysql_secure_installation
For the configuration, please read this article by DigitalOcean
- Node 20.12.x
- PHP 8.3.x
After setup, if you have Node and PHP installed; you may continue by using the installers:
$ npm install
$ composer install
After that, you may run the application using
$ php artisan serve
$ npm run watch
Axios is installed for the communication between front-end and backend. You may use Axios to make api calls to the laravel backend.
For information on how to use Vue, Laravel, SCSS, Tailwind and Mysql: