We recommend to use Ampps (https://www.ampps.com) instead of Xampp to create develop environment. With Ampps, you can easy to add/manage virtual domain like lara-mag.local https://www.youtube.com/watch?v=F1CaiR3L9FQ
{warning} On this project, I use the latest Laravel version (currently 5.8). Please go to Laravel documentation page for more information.
Run composer install
to download vendor packages
Create .env
file from .env-example
and update your configuration
Run php artisan migrate
to create database structure
Run php artisan cms:user:create
to create admin user
Run php artisan vendor:publish --tag=cms-public --force
Run php artisan cms:theme:assets:publish lara-mag
Run php artisan storage:link
Run the first test with command php artisan serve
. Open http://localhost:8000
, you should see home page of Botble CMS
If you need sample data, you can import it from database.sql
LaraMag should run on a virtual host. Create a virtual host like cms.local to run LaraMag. Follow these steps to see how to config virtual host: Setup virtual host.
This site can only be run at domain name, not folder link.
On your localhost, setting virtual host. Something like http://lara-mag.local
is ok.
Cannot use as http://localhost/lara-mag/...
.
Please remove public
in your domain also, you can point your domain to public
folder
or use .httaccess
(https://stackoverflow.com/questions/23837933/how-can-i-remove-public-index-php-in-the-url-generated-laravel)
Follow these steps to see how to config virtual host: Setup virtual host.
Well done! Now, you can login to the dashboard by access to your_domain_site/admin.
Username: botble
Password: 159357
Enjoy!