Laravel Blog is a blog website built using Laravel, allowing users to create, edit, and delete posts, add comments to posts, and log in and register using GitHub and Google. The website also features validation for post titles, descriptions, and image types.
- Users can add, delete, and restore posts
- Users can add comments to posts
- Users can edit their posts
- Validation for post title, description, and image type
- Login and registration using GitHub and Google
- Login and registraion using laravel package for authentication
- Follows resource naming convention for routes
- Laravel
- MySQL
To install the project:
-
Clone the repository:
-
Install dependencies:
-
Set up a MySQL database and update the
.env
file with the database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=[database-name]
DB_USERNAME=[database-username]
DB_PASSWORD=[database-password] -
Run migrations: php artisan migrate
-
Access the website at
http://localhost:8000
.
To use the website:
-
Register using GitHub or Google.
-
Add a new post by clicking the "Add Post" button.
-
Edit or delete a post by clicking the corresponding buttons.
-
Add a comment to a post by clicking the "Add Comment" button and filling out the form.
-
Restore a deleted post by clicking the "Restore" button on the "Deleted Posts" page.
The project is licensed under the MIT License.