Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bmf-san/laravel-homestead-boilerplate
This is a boilerplate for laravel working for homestead.
https://github.com/bmf-san/laravel-homestead-boilerplate
composer homestead laravel vagrant virtualbox
Last synced: 20 days ago
JSON representation
This is a boilerplate for laravel working for homestead.
- Host: GitHub
- URL: https://github.com/bmf-san/laravel-homestead-boilerplate
- Owner: bmf-san
- Created: 2018-04-11T12:35:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-22T00:31:17.000Z (over 1 year ago)
- Last Synced: 2024-10-16T03:21:03.724Z (2 months ago)
- Topics: composer, homestead, laravel, vagrant, virtualbox
- Language: PHP
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Homestead Boilerplate
This is a boilerplate for laravel working for homestead.# Requirements
- composer
- vagrant
- virtualbox
- ssh key# Get Started
## Setup for Laravel
`composer create-project "laravel/laravel=5.2.*" projectname`
※You don't need execute this command if you use this boilerplate repository.`cd app`
`composer install`## Setup for Homestead
### Install the vagrant box.
`vagrant box add laravel/homestead`### Install the homestead repository
`cd ~`
`git clone https://github.com/laravel/homestead.git Homestead`
`bash init.sh``vi Homestead.yaml`
Then, edit it like this.
```:bash
ip: "192.167.10.99" // edit
memory: 2048
cpus: 1
provider: virtualboxauthorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsafolders:
- map: ~/localdev/project/laravel // edit
to: /home/vagrant/codesites:
- map: laravel // edit
to: /home/vagrant/code/publicdatabases:
- homestead# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
```And, edit a hosts file.
`vi /etc/hosts`
```
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.167.10.99 laravel // edit
192.167.10.99 homestead # VAGRANT: e78b975204ccde53ef11f1ffe284d4f4 (homestead-7) / b212bb82-8dc8-405b-8507-fa284ddb9aa8
```## Start up the vagrant
`cd ~/Homestead`
`vagrant up`Then you will be able to access the site via your web browser.
`http://laravel`## Author
bmf - A Web Developer in Japan.
- [@bmf-san](https://twitter.com/bmf_san)
- [bmf-tech](http://bmf-tech.com/)