Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Installation
- ### For Shared Hosting
- #### Files
- Upload the project zip in your shared hosting through cpanel and extract it. After extracting put contents of project **public_html/** folder to shared hosting **public_html/** folder and everything should go outside **public_html/** folder of shared hosting.
- #### Database
- In project folder their file by the name of **.env** you will see lot of configuration options of which database related config. options are
- **DB_CONNECTION=mysql** (keep this as it's)
- **DB_HOST=localhost** (keep this as it's)
- **DB_PORT=3306** (keep this as it's)
- **DB_DATABASE=hexurp_booking_db** (change this to your shared hosting database name)
- **DB_USERNAME=user1** (change this to your shared hosting database username)
- **DB_PASSWORD=password** (change this to your shared hosting databse user password)
- In Project zip there will be **.sql** file, import it to your database server through phpmyadmin.
- ### Email setup
- You can use simple shared hosting email service or Mailgun service.
- If you want to use shared hosting service then change following field in **.env** field like below
- **MAIL_DRIVER=sendmail**
- or
- if you want to use Mailgun email service then you have to signup Mailgun which is a free service for upto 10000 emails per month. Once you signup their they will generate secret key which you have add in project **.env** file like below
- **MAIL_DRIVER=mailgun**
- **MAILGUN_DOMAIN=barber.com**
- **MAILGUN_SECRET=key-d20c6e01567d5360123328123d8395e8d53b333**
- **Note:** You have to verify your domain with mailgun first
- Also there is one field **MAIL_FROM_NAME** in **.env** field this should be from same domain as your website domain e.g if your website domain is lifestyle.com then it's value should be like something@lifestyle.com. **MAIL_TO_ADDRESS** is address where you will receive contact form submissions.
- ### Twilio (SMS Service for appointments)
- You have to create Twilio account and buy their programmable SMS service.
- **ENABLE_TWILIO=false** (To enable or disable twilio change it to true or false respectively. if you disabled the SMS service the application will fallback to email service automatically)
- **TWILIO_SID=AC8a804f89c4233a4b36f121e52972** (Twilio credentials from Twilio account)
- **TWILIO_AUTH_TOKEN=810e9455563d25c742d49918cebe6621** (Twilio credentials from Twilio account)
- **TWILIO_NUMBER=+12315663515** (Twilio Number to send Sms)
- **ENABLE_US_NUMBERS_ONLY=false** (If you just want accept USA phone numbers then change it to true else it will allow all international numbers)
- ### Instagram Setup
- If you have instagram account then go to [developer.instagram.com](https://developer.instagram.com) and create a new client during creating please add the website uri as yourdomain.com of shared hosting you bought and redirect uri as **yourdomain.com/instagram/redirect** which will generate **client_id** and **client_secret**. Now add these credentials in **.env** file of project in below fields:-
- **IG_CLIENT_ID=b179c6590bb74b16863343867** (you instagram client id)
- **IG_CLIENT_SECRET=8b8707192d7e492dbf5865bb730bd533** (your instagram client_secret)
- **IG_REDIRECT_URI=http://appointment.dev/instagram/redirect** (your instagram redirect uri)
- **IG_MEDIA_EXPIRATION_MIN=2** (No. of minutes instagram media will be kept in a cache to avoid the spams)
- **IG_FILTER_TAG=icecream** (if you want to get media from instagram by a particular tag then use it here)
- **IG_FILTER_BY_TAG=true** (if you want fetch media by tag then set it to true or false if you want to fetch media by profile from which you had generated the credentials in developer.instagram.com)
- ### APP RELATED Config
- **APP_NAME="Appointment App"** (change it your shopname this name will appear in Emails and footer)
- **APP_DEBUG=false** (change it false)
- **APP_URL=//appointment.dev** (change it to yourdomain.com you bought)
- **SLOTEXPIRE=3** (This will be the number of minutes the appointment slot will be held by the customer)
- ### Templates or Pages(About, contact, privacy)
- To change the content of pages go to project **resources/views/** folder, you will see file of extension **.blade.php** all these files are your pages of website. You can add html , php in their. You will see sections there to update particular parts of the pages.
- If you have to add image somewhere then you have to add that image in **public_html/images** folder then use that image in a template like this <img src="{{asset('images/YOUR_IMAGE_NAME.jpg')}}">
- If you have to change Menu items text then go to **resources/views/layouts/partials/navigation.blade.php**
Add Comment
Please, Sign In to add comment