Laravel Blog Assignment PHP Project
This project is an assignment for PHP and Laravel web framework. a basic blog with user authentication and CRUD functionality.
Requirements
- PHP 7.4 or higher
- Laravel 8.x
- MySQL or MariaDB
Installation
Clone the repository to your local machine
git clone https://github.com/BaseMax/LaravelBlogAssignment.git
Navigate to the project directory
cd LaravelBlogAssignment
Install dependencies with Composer
composer install
Copy the .env.example
file to .env
cp .env.example .env
Generate an application key
php artisan key:generate
Configure the database settings in the .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_assignment
DB_USERNAME=root
DB_PASSWORD=
Run the migrations to create the necessary tables:
php artisan migrate
Start the built-in development server:
php artisan serve
Features
- User authentication (register, login, and logout)
- CRUD functionality for blog posts
- Pagination for blog posts
- Search functionality for blog posts
- Admin panel to manage users and blog posts
Screenshots
Main page:
Log in page:
Register:
About page:
and a page for every Article:
Conclusion
This project provides a basic foundation for a Laravel web application with user authentication and CRUD functionality. It can be used as a starting point for building a more complex web application.
Copyright (c) 2023, Max Base, Ali Ahmadi