├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── README.md ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── API │ │ │ └── v1 │ │ │ │ ├── AccountController.php │ │ │ │ ├── AddressController.php │ │ │ │ ├── Admin │ │ │ │ ├── AddressController.php │ │ │ │ ├── AuthorController.php │ │ │ │ ├── BookController.php │ │ │ │ ├── CustomerController.php │ │ │ │ ├── DashboardController.php │ │ │ │ ├── GenreController.php │ │ │ │ ├── OrderController.php │ │ │ │ └── OrderItemController.php │ │ │ │ ├── AuthorController.php │ │ │ │ ├── BookController.php │ │ │ │ ├── CartController.php │ │ │ │ ├── GenreController.php │ │ │ │ ├── OrderController.php │ │ │ │ ├── OrderItemController.php │ │ │ │ └── PaymentController.php │ │ ├── Auth │ │ │ ├── AuthenticatedSessionController.php │ │ │ ├── EmailVerificationNotificationController.php │ │ │ ├── NewPasswordController.php │ │ │ ├── PasswordResetLinkController.php │ │ │ ├── RegisteredUserController.php │ │ │ └── VerifyEmailController.php │ │ └── Controller.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── EnsureEmailIsVerified.php │ │ ├── IsAdmin.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ ├── ValidateSignature.php │ │ └── VerifyCsrfToken.php │ └── Requests │ │ ├── Auth │ │ └── LoginRequest.php │ │ └── StoreBookRequest.php ├── Models │ ├── Address.php │ ├── Author.php │ ├── Book.php │ ├── CartItem.php │ ├── Customer.php │ ├── Genre.php │ ├── Order.php │ ├── OrderItem.php │ └── User.php └── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── hashing.php ├── logging.php ├── mail.php ├── queue.php ├── sanctum.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ ├── AddressFactory.php │ ├── AuthorFactory.php │ ├── BookFactory.php │ ├── CustomerFactory.php │ ├── GenreFactory.php │ ├── OrderFactory.php │ ├── OrderItemFactory.php │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_reset_tokens_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2019_12_14_000001_create_personal_access_tokens_table.php │ ├── 2023_11_13_090132_create_authors_table.php │ ├── 2023_11_13_102003_create_genres_table.php │ ├── 2023_11_13_110640_create_books_table.php │ ├── 2023_11_14_022335_create_orders_table.php │ ├── 2023_11_14_022339_create_order_items_table.php │ ├── 2023_11_14_043515_create_addresses_table.php │ ├── 2023_11_21_154003_add_is_active_column_to_addresses_table.php │ ├── 2023_11_22_115430_add_cover_image_column_to_books_table.php │ ├── 2023_11_22_144545_add_label_column_to_addresses_table.php │ ├── 2023_11_25_134952_add_slug_column_to_authors_table.php │ ├── 2023_11_29_070354_add_book_foreign_to_order_items_table.php │ ├── 2023_12_15_131342_add_slug_column_to_books_table.php │ ├── 2023_12_17_144012_add_paid_column_to_orders_table.php │ ├── 2023_12_17_151747_create_cart_items_table.php │ ├── 2023_12_23_234834_add_order_id_column_to_cart_items_table.php │ ├── 2023_12_25_102520_add_token_column_to_orders_table.php │ ├── 2023_12_26_130259_add_status_column_to_orders_table.php │ └── 2023_12_26_130531_add_address_column_to_orders_table.php ├── seeders │ ├── AddressSeeder.php │ ├── AuthorSeeder.php │ ├── BookSeeder.php │ ├── DatabaseSeeder.php │ ├── GenreSeeder.php │ ├── OrderItemSeeder.php │ └── OrderSeeder.php └── static │ └── books.json ├── docker-compose.yml ├── docs └── database-design.md ├── phpunit.xml ├── public ├── .htaccess ├── favicon.ico ├── index.php └── robots.txt ├── resources └── .gitkeep ├── routes ├── api.php ├── api │ └── v1 │ │ ├── account.php │ │ ├── addresses.php │ │ ├── admin │ │ ├── addresses.php │ │ ├── authors.php │ │ ├── books.php │ │ ├── customers.php │ │ ├── dashboard.php │ │ ├── genres.php │ │ ├── order-items.php │ │ └── orders.php │ │ ├── authors.php │ │ ├── books.php │ │ ├── carts.php │ │ ├── checkout.php │ │ ├── genres.php │ │ └── orders.php ├── auth.php ├── channels.php ├── console.php └── web.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore └── tests ├── CreatesApplication.php ├── Feature ├── Auth │ ├── AuthenticationTest.php │ ├── EmailVerificationTest.php │ ├── PasswordResetTest.php │ └── RegistrationTest.php └── ExampleTest.php ├── TestCase.php └── Unit └── ExampleTest.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/README.md -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Console/Kernel.php -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Exceptions/Handler.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/AccountController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/AccountController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/AddressController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/AddressController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/AddressController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/AddressController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/AuthorController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/AuthorController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/BookController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/BookController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/CustomerController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/CustomerController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/DashboardController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/DashboardController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/GenreController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/GenreController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/OrderController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/OrderController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/Admin/OrderItemController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/Admin/OrderItemController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/AuthorController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/AuthorController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/BookController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/BookController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/CartController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/CartController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/GenreController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/GenreController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/OrderController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/OrderController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/OrderItemController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/OrderItemController.php -------------------------------------------------------------------------------- /app/Http/Controllers/API/v1/PaymentController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/API/v1/PaymentController.php -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/AuthenticatedSessionController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/Auth/AuthenticatedSessionController.php -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/EmailVerificationNotificationController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/Auth/EmailVerificationNotificationController.php -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/NewPasswordController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/Auth/NewPasswordController.php -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/PasswordResetLinkController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/Auth/PasswordResetLinkController.php -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisteredUserController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/Auth/RegisteredUserController.php -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerifyEmailController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/Auth/VerifyEmailController.php -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Controllers/Controller.php -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Kernel.php -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/Authenticate.php -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/EncryptCookies.php -------------------------------------------------------------------------------- /app/Http/Middleware/EnsureEmailIsVerified.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/EnsureEmailIsVerified.php -------------------------------------------------------------------------------- /app/Http/Middleware/IsAdmin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/IsAdmin.php -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/PreventRequestsDuringMaintenance.php -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/RedirectIfAuthenticated.php -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/TrimStrings.php -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/TrustHosts.php -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/TrustProxies.php -------------------------------------------------------------------------------- /app/Http/Middleware/ValidateSignature.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/ValidateSignature.php -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Middleware/VerifyCsrfToken.php -------------------------------------------------------------------------------- /app/Http/Requests/Auth/LoginRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Requests/Auth/LoginRequest.php -------------------------------------------------------------------------------- /app/Http/Requests/StoreBookRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Http/Requests/StoreBookRequest.php -------------------------------------------------------------------------------- /app/Models/Address.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/Address.php -------------------------------------------------------------------------------- /app/Models/Author.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/Author.php -------------------------------------------------------------------------------- /app/Models/Book.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/Book.php -------------------------------------------------------------------------------- /app/Models/CartItem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/CartItem.php -------------------------------------------------------------------------------- /app/Models/Customer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/Customer.php -------------------------------------------------------------------------------- /app/Models/Genre.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/Genre.php -------------------------------------------------------------------------------- /app/Models/Order.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/Order.php -------------------------------------------------------------------------------- /app/Models/OrderItem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/OrderItem.php -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Models/User.php -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Providers/AppServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Providers/AuthServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Providers/BroadcastServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Providers/EventServiceProvider.php -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/app/Providers/RouteServiceProvider.php -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/artisan -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/bootstrap/app.php -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/composer.lock -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/app.php -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/auth.php -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/broadcasting.php -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/cache.php -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/cors.php -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/database.php -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/filesystems.php -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/hashing.php -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/logging.php -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/mail.php -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/queue.php -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/sanctum.php -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/services.php -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/session.php -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/config/view.php -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /database/factories/AddressFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/AddressFactory.php -------------------------------------------------------------------------------- /database/factories/AuthorFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/AuthorFactory.php -------------------------------------------------------------------------------- /database/factories/BookFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/BookFactory.php -------------------------------------------------------------------------------- /database/factories/CustomerFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/CustomerFactory.php -------------------------------------------------------------------------------- /database/factories/GenreFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/GenreFactory.php -------------------------------------------------------------------------------- /database/factories/OrderFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/OrderFactory.php -------------------------------------------------------------------------------- /database/factories/OrderItemFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/OrderItemFactory.php -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/factories/UserFactory.php -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2014_10_12_000000_create_users_table.php -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2019_08_19_000000_create_failed_jobs_table.php -------------------------------------------------------------------------------- /database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_13_090132_create_authors_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_13_090132_create_authors_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_13_102003_create_genres_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_13_102003_create_genres_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_13_110640_create_books_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_13_110640_create_books_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_14_022335_create_orders_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_14_022335_create_orders_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_14_022339_create_order_items_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_14_022339_create_order_items_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_14_043515_create_addresses_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_14_043515_create_addresses_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_21_154003_add_is_active_column_to_addresses_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_21_154003_add_is_active_column_to_addresses_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_22_115430_add_cover_image_column_to_books_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_22_115430_add_cover_image_column_to_books_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_22_144545_add_label_column_to_addresses_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_22_144545_add_label_column_to_addresses_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_25_134952_add_slug_column_to_authors_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_25_134952_add_slug_column_to_authors_table.php -------------------------------------------------------------------------------- /database/migrations/2023_11_29_070354_add_book_foreign_to_order_items_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_11_29_070354_add_book_foreign_to_order_items_table.php -------------------------------------------------------------------------------- /database/migrations/2023_12_15_131342_add_slug_column_to_books_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_12_15_131342_add_slug_column_to_books_table.php -------------------------------------------------------------------------------- /database/migrations/2023_12_17_144012_add_paid_column_to_orders_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_12_17_144012_add_paid_column_to_orders_table.php -------------------------------------------------------------------------------- /database/migrations/2023_12_17_151747_create_cart_items_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_12_17_151747_create_cart_items_table.php -------------------------------------------------------------------------------- /database/migrations/2023_12_23_234834_add_order_id_column_to_cart_items_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_12_23_234834_add_order_id_column_to_cart_items_table.php -------------------------------------------------------------------------------- /database/migrations/2023_12_25_102520_add_token_column_to_orders_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_12_25_102520_add_token_column_to_orders_table.php -------------------------------------------------------------------------------- /database/migrations/2023_12_26_130259_add_status_column_to_orders_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_12_26_130259_add_status_column_to_orders_table.php -------------------------------------------------------------------------------- /database/migrations/2023_12_26_130531_add_address_column_to_orders_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/migrations/2023_12_26_130531_add_address_column_to_orders_table.php -------------------------------------------------------------------------------- /database/seeders/AddressSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/seeders/AddressSeeder.php -------------------------------------------------------------------------------- /database/seeders/AuthorSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/seeders/AuthorSeeder.php -------------------------------------------------------------------------------- /database/seeders/BookSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/seeders/BookSeeder.php -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/seeders/DatabaseSeeder.php -------------------------------------------------------------------------------- /database/seeders/GenreSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/seeders/GenreSeeder.php -------------------------------------------------------------------------------- /database/seeders/OrderItemSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/seeders/OrderItemSeeder.php -------------------------------------------------------------------------------- /database/seeders/OrderSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/seeders/OrderSeeder.php -------------------------------------------------------------------------------- /database/static/books.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/database/static/books.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/database-design.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/docs/database-design.md -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/phpunit.xml -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/public/.htaccess -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/public/index.php -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api.php -------------------------------------------------------------------------------- /routes/api/v1/account.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/account.php -------------------------------------------------------------------------------- /routes/api/v1/addresses.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/addresses.php -------------------------------------------------------------------------------- /routes/api/v1/admin/addresses.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/addresses.php -------------------------------------------------------------------------------- /routes/api/v1/admin/authors.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/authors.php -------------------------------------------------------------------------------- /routes/api/v1/admin/books.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/books.php -------------------------------------------------------------------------------- /routes/api/v1/admin/customers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/customers.php -------------------------------------------------------------------------------- /routes/api/v1/admin/dashboard.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/dashboard.php -------------------------------------------------------------------------------- /routes/api/v1/admin/genres.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/genres.php -------------------------------------------------------------------------------- /routes/api/v1/admin/order-items.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/order-items.php -------------------------------------------------------------------------------- /routes/api/v1/admin/orders.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/admin/orders.php -------------------------------------------------------------------------------- /routes/api/v1/authors.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/authors.php -------------------------------------------------------------------------------- /routes/api/v1/books.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/books.php -------------------------------------------------------------------------------- /routes/api/v1/carts.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/carts.php -------------------------------------------------------------------------------- /routes/api/v1/checkout.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/checkout.php -------------------------------------------------------------------------------- /routes/api/v1/genres.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/genres.php -------------------------------------------------------------------------------- /routes/api/v1/orders.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/api/v1/orders.php -------------------------------------------------------------------------------- /routes/auth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/auth.php -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/channels.php -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/console.php -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/routes/web.php -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/storage/framework/.gitignore -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/CreatesApplication.php -------------------------------------------------------------------------------- /tests/Feature/Auth/AuthenticationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/Feature/Auth/AuthenticationTest.php -------------------------------------------------------------------------------- /tests/Feature/Auth/EmailVerificationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/Feature/Auth/EmailVerificationTest.php -------------------------------------------------------------------------------- /tests/Feature/Auth/PasswordResetTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/Feature/Auth/PasswordResetTest.php -------------------------------------------------------------------------------- /tests/Feature/Auth/RegistrationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/Feature/Auth/RegistrationTest.php -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/Feature/ExampleTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aufarijaal/online-book-store-backend/HEAD/tests/Unit/ExampleTest.php --------------------------------------------------------------------------------