A set of tools for managing laravel on your server
What Laravel Toolkit will do:
- Check for PHP and install if not present
- Check for Composer and install if not present
What Laravel Toolkit can do:
- Install NGINX
- Install and automatically configure MySQL
- Create a new Laravel Application
- With database (also changes .env) - optional
- With NGINX config (http/https) - optional
git clone https://github.com/Loostie/laravel-toolkit.gitcd laravel-toolkitsudo chmod +x laraveltksudo ./laraveltk
If you open laraveltk you'll see this at the top:
#Change this to your desired version
install_php="8.2"
# Change this your desired projects path
project_path="/home/projects/"Here you can change what PHP version laraveltk will install on first launch (if you do not have PHP already installed) and where laraveltk will place your application folders when creating a new laravel app
If you open db.config you'll see this:
#If you already have MySQL installed, enter credentials here
#If NOT, you can install it with the toolkit first, then come back
DBHOST=127.0.0.1
DBPORT=3306
DBUSER=root
DBPASS=Here you'll need to change the database connection info, if you already have MySQL installed you can change this immediately, if not, change this after you've installed it using laraveltk
- This tool is created and tested for Ubuntu 22.04 (Jammy Jellyfish) (It will most likely work on older versions of Ubuntu)
- laraveltk needs to be ran in the same folder with
db.configand thetemplatesfolder
