Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashaam-zahid/laravel-blog-post
This project is a Laravel-based Blog Post application that incorporates various features including a contact page, Laravel Jobs, Middleware, Laravel Request, Laravel Resources for JSON API, Eloquent ORM, NPM packages for asset management (SCSS, JavaScript), file Handling
https://github.com/hashaam-zahid/laravel-blog-post
blade composer laravel nodejs php7
Last synced: about 2 months ago
JSON representation
This project is a Laravel-based Blog Post application that incorporates various features including a contact page, Laravel Jobs, Middleware, Laravel Request, Laravel Resources for JSON API, Eloquent ORM, NPM packages for asset management (SCSS, JavaScript), file Handling
- Host: GitHub
- URL: https://github.com/hashaam-zahid/laravel-blog-post
- Owner: hashaam-zahid
- Created: 2023-11-24T10:05:25.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-21T23:22:51.000Z (about 1 year ago)
- Last Synced: 2023-12-23T01:25:14.223Z (about 1 year ago)
- Topics: blade, composer, laravel, nodejs, php7
- Language: PHP
- Homepage:
- Size: 8.75 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Laravel Blog Post Project by [Hashaam Zahid]
This project is a Laravel-based Blog Post application that incorporates various features including a contact page, Laravel Jobs, Middleware, Laravel Request, Laravel Resources for JSON API, Eloquent ORM, NPM packages for asset management (SCSS, JavaScript), file handling, and user policy for access restriction.
# php artisan Commands Required
```
php artisan make:migration
php artisan make:request
php artisan make:mail
php artisan make:job
php artisan queue:table
php artisan queue:work
php artisan make:auth
php artisan make:resource
php artisan make:middleware
php artisan make:Policy
php artisan migrate
php artisan make:controller
php artisan make:model
php artisan make:seed
php artisan make:factory
php artisan serve
```# Node Packages Commands Required
npm install
# Composer Commands Required
```
composer update
composer dump-autoload
```## Features
- **Contact Page**: Includes a dedicated page for user inquiries or contact.
- **Laravel Jobs**: Implements background job processing using Laravel's job functionalities.
- **Middleware**: Middleware is used to filter HTTP requests entering the application.
- **Laravel Request**: Utilizes Laravel's request handling for form validations and request management.
- **Laravel Resources for JSON API**: Constructs resources for API endpoints to manage data representations.
- **Eloquent ORM**: Implements ORM for database interaction, simplifying data manipulation.
- **NPM Packages for Assets**: Utilizes NPM packages to manage SCSS, JavaScript, and other assets.
- **File Handling**: Incorporates file management functionalities within the application.
- **User Policy for Restriction**: Implements policies to restrict user access to certain features or data.## Installation
To run this project locally, follow these steps:
1. Clone the repository:
```bash
git clone https://github.com/hashaam-zahid/laravel-blog-post.git
```2. Install dependencies:
composer install
npm install
3. Set up environment variables:
- Duplicate the `.env.example` file and rename it to `.env`.
- Configure the necessary environment variables such as database connection details.4. Run migrations and seeders:
```bash
php artisan migrate --seed
```5. Compile assets:
```bash
npm run dev
```6. Start the development server:
```bash
php artisan serve
```7. Access the application in your browser at `http://localhost:8000`.
## Usage
- Explore the different features of the blog application:
- Visit the contact page and submit inquiries.
- Test the background job processing functionality.
- Check how middleware restricts or allows access to specific routes.
- Utilize Laravel Requests for form validation and request handling.
- Interact with the JSON API endpoints via Laravel Resources.
- Experiment with file handling features.
- Understand how user policies restrict or grant access based on user roles.## Contributing
Contributions are welcome! If you'd like to enhance or fix any issues, please fork the repository and create a pull request.
## License
This project is licensed under the [MIT License](LICENSE).
---
Feel free to add or modify any sections according to your project's specific requirements and details.