We recommend to use MAMP PRO (https://www.mamp.info/en/) instead of Xampp to create develop environment. With MAMP, you can easy to add/manage virtual domain like flex-home.local.
{warning} On this project, I use the latest Laravel version (currently 6.x). Please go to Laravel documentation page for more information.
public_html
.database.sql
(it's located in source code)..env
from .env.example
and update your database informationConfig for media:
public_html
and run command php artisan storage:link
If your hosting doesn't support SSH. You have to open file config/filesystem.php
Then change
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
to
'public' => [
'driver' => 'local',
'root' => public_path('storage'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
Copy all files from /storage/app/public
to public/storage
.
Run composer install
to download vendor packages (if you're using Windows, please delete folder /vendor
then run composer install
)
Create .env
file from .env-example
and update your configuration
Run php artisan migrate
to create database structure with no sample data or import default database from database.sql
if you need sample data.
Run php artisan cms:user:create
to create admin user
Run php artisan vendor:publish --tag=cms-public --force
Run php artisan cms:theme:activate flex-home
This project requires some plugins. Run following commands to activate it.
php artisan cms:plugin:activate real-estate
php artisan cms:plugin:activate location
php artisan cms:plugin:activate blog
php artisan cms:plugin:activate language
php artisan storage:link
Note: If you can't run php artisan storage:link
(some hosting doesn't support it), you can change config
in /config/filesystems.php
like this https://prnt.sc/pn50dc then move all uploaded file from /storage/app/public
to /public/storage
.
php artisan serve
. Open http://localhost:8000
, you should see home page of Botble CMSIf you need sample data, you can import it from database.sql
FlexHome should run on a virtual host. Create a virtual host like cms.local to run FlexHome. 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://flex-home.local
is ok.
Cannot use as http://localhost/flex-home/...
.
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!