At the time of this writing we're using dev env on windows with the following setup, (*1)
-
install composer from https://getcomposer.org/download/
composer v1.6.5, (*2)
-
install npm from https://nodejs.org/en/
npm 10.4.1, (*3)
You need to have a php installation with minimum v7.1.3 (required by laravel). During composer install it should be able to automatically detect the location of your php.exe, (*4)
You may need to restart your dev environment (either the editor or logoff/logon) if you can't access the composer or npm in your command line, (*5)
Create your dev location ex:, (*6)
c:/laravel-dev
- install laravel from https://laravel.com/docs/5.6/installation
cd laravel-dev
composer global require "laravel/installer"
laravel new blog
-
this will create a new folder called blog where the laravel framework will be installed. You may change 'blog' to any name you desire, (*7)
-
switch to the new location, (*8)
cd blog
- install additional npm packages
npm install es6-promise vue-sweetalert2 vue2-datepicker uuid vue-moment bootstrap-vue --save-dev
- you can use the standard auth install from laravel
php artisan make:auth
- create your database and modify .env to reflect your connection details and run the the initial migration
php artisan migrate
- startup dev env
php artisan serve
- Point your browser to http://127.0.0.1:8000/ and you should see the new laravel app you just created
for laravel earlier then 5.6 you need to add the service provider in config/app.php under 'providers', (*9)
SoftDreams\LaravelVuexCrud\LaravelVuexCrudProvider::class,
Commands:, (*10)
$ php artisan vuexcrud:laravel:make:api ApiName {section}
$ php artisan vuexcrud:laravel:make:crudservice ApiName ModelName ServiceName {section}
$ php artisan vuexcrud:laravel:make:service ApiName ServiceName {section}
$ php artisan vuexcrud:laravel:inject:service ApiName ServiceName {section}
$ php artisan vuexcrud:vue:make:app AppName {section}
$ php artisan vuexcrud:vue:make:layout AppName LayoutName {section}
$ php artisan vuexcrud:vue:make:page AppName LayoutName PageName {section}
$ php artisan vuexcrud:vue:make:crudpage AppName LayoutName ServiceName VuexModule PageName {section}
$ php artisan vuexcrud:vuex:make:module AppName ModuleName {section}