Installation
Create project with composer
composer create-project appdezign/lara-cms-project myapp --prefer-distInstall NPM
cd myapp
npm installPublish vendor files
php artisan vendor:publish --tag=laraCreate client theme
cp -R ./laracms/themes/demo ./laracms/themes/myclientThe .env file
Copy .env
cp ./.env.example ./.envEdit .env
APP_ENV=local
MIX_PARTIAL_PROCESS=
MIX_PROCESS_CSS_ONLY=false
LARA_FRONT_BS_VERSION=5
LARA_PARENT_THEME=base
LARA_CLIENT_THEME=myclientRun webpack / mix
Create database (mysql)
Create a database and a database user, and edit the relevant lines in the .env file. Check the /config/database.php file for the available database connections.
Edit the App Url
Setup
Run setup
Make sure that the LARA_NEEDS_SETUP is set to true in your .env file, and run setup
If the setup wizard has completed successfully, the LARA_NEEDS_SETUP variable will be set to false by the wizard, and you will be redirected to the backend dashboard.
SASS
Deploy on web server
If you publish the app to a web server, you should move all project folders (except public) one level down, and put them in a folder called /laravel. If you are using a shared server (e.g. Plesk) and your server uses a public folder with a different name (e.g. httpdocs), you should move all public files and folders from /public to /httpdocs. You can then delete the (empty) public folder.
Your folder structure should look like this now:
You should now edit your .env file:
... and your webpack.mix.js file:
... and, if necessary, the bootstrap/app.php file
Last updated