Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manhpham90vn/laravel_boilerplate
https://github.com/manhpham90vn/laravel_boilerplate
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/manhpham90vn/laravel_boilerplate
- Owner: manhpham90vn
- Created: 2024-08-13T01:55:09.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-08-26T16:02:42.000Z (3 months ago)
- Last Synced: 2024-08-27T17:17:17.375Z (3 months ago)
- Language: PHP
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Boilerplate
## Use docker
- bootstrap
```shell
docker-compose up
```- post install
```shell
docker exec laravel_boilerplate_app composer install
docker exec laravel_boilerplate_app php artisan jwt:secret -f
docker exec laravel_boilerplate_app php artisan key:generate
docker exec laravel_boilerplate_app php artisan config:clear
docker exec laravel_boilerplate_app php artisan migrate
docker exec laravel_boilerplate_app chmod 0777 -R /var/www/html/storage
docker exec laravel_boilerplate_app chown -R www-data:www-data /var/www/html/storage
```- start shell
```shell
docker exec -it laravel_boilerplate_app bash
```- reset permission
```shell
sudo chown -R $USER:$USER .
```- docker remove all
```shell
docker stop $(docker ps -aq)
docker container prune -f
docker image prune -f -a
docker volume prune -f -a
docker network prune -f
docker system prune
```## Use Native
- install php on ubuntu 24.04
```shell
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt-get install -y openssl php8.3{,-cli,-common,-fpm,-mysql,-zip,-gd,-mbstring,-curl,-xml,-bcmath,-tokenizer}
sudo update-alternatives --set php /usr/bin/php8.3
```- install composer
```shell
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
```- install mysql server
```shell
sudo apt install mysql-server
```- install redis
```shell
sudo apt install redis-server
```