This Laravel project provides a RESTful API for managing authors and books by author. It includes endpoints for creating, retrieving, updating, and deleting authors and books.
- PHP 8.1or higher
- Composer
- Laravel 10.x
- MySQL or any other supported database
-
Clone the repository:
git clone https://github.com/Roodi7/laravel-api.git
-
Install dependencies:
composer install
-
Copy the .env.example file to .env and configure your database:
cp .env.example .env
-
Generate application key:
php artisan key:generate
-
Run migrations and seed the database:
php artisan migrate --seed
-
Start the development server:
php artisan serve
https://documenter.getpostman.com/view/13773222/2s9YknAhb9