Skip to content

ohdoking/laravel-php-mariadb-demo

This branch is 8 commits behind serverlesssalad/laravel-php-mariadb-demo:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ade967a · Feb 7, 2025

History

2 Commits
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025
Feb 7, 2025

Repository files navigation

Laravel PHP MariaDB Demo

Prerequisites

** PR (Phhp 9.x or higher) ** Composer (Package Manager) ** MariaDB 10.x running on MacOS

Installation

1. Clone the repository:

git clone https://github.com/serverlesssalad/laravel-php-mariadb-demo.git
cd laravel-php-mariadb-demo

2. Configure .env file:

DB_CONNECTION=mariadb
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_php_mariadb_demo
DB_USERNAME=root
DB_PASSWORD=

3. Run database migration:

php artisan migrate

4. Start the Laravel server:

php artisan serve

API Test

GET words

curl -X POST http://127.0.0.1:8000/api/words

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 55.9%
  • Blade 43.0%
  • Other 1.1%