Skip to content

This repository is useful to learn the basic concepts of Laravel and to get familiar with the eco-system of the Laravel.

Notifications You must be signed in to change notification settings

Asad9299/laravel-blog-posts-for-beginners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
asad.m
Jan 26, 2024
286fc32 · Jan 26, 2024

History

6 Commits
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 26, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 8, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024

Repository files navigation

Laravel Blog Posts for Beginners

Welcome to the Laravel Blog Posts for Beginners repository! This project is designed to help beginners get started with Laravel and build a simple blog application. Follow the steps below to set up the project and explore its features.

Topics

  1. Resource Routes: Learn how to define and use resource routes in Laravel.

  2. Resource Controllers: Explore the use of resource controllers to handle CRUD operations efficiently.

  3. Implicit Route Model Binding: Understand and implement implicit route model binding for cleaner controller methods.

  4. Accessors: Learn how to use accessors to manipulate attribute values in your Eloquent models.

  5. Storage Public Disk for File Uploads: Explore how to use Laravel's storage system and the public disk for handling file uploads.

  6. One to One Relationship (Inverse): Implement and understand the inverse side of a one-to-one Eloquent relationship.

  7. Many to Many Relationship: Dive into the concept of many-to-many relationships in Laravel Eloquent.

  8. Eager Loading (Solution to N+1 Query Problem): Solve the N+1 query problem by implementing eager loading for efficient database queries.

  9. Route View: Learn how to route directly to a view without a controller.

  10. Route Redirect: Understand and implement route redirection for a better user experience.

  11. Bootstrap UI Package for Login: Integrate Bootstrap UI package to enhance the visual appearance of the login functionality.

  12. Bootstrap Pagination: Implement Bootstrap pagination for better navigation through paginated data.

Prerequisites

Before you begin, make sure you have the following installed on your system:

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/Asad9299/laravel-blog-posts-for-beginners.git
  2. Navigate to the project directory:

    cd laravel-blog-posts-for-beginners
  3. Install Composer dependencies:

    composer install
  4. Install NPM dependencies and compile assets:

    npm install && npm run dev
  5. Copy the example environment file:

    cp .env.example .env
  6. Configure your .env file with appropriate database and other settings.

  7. Generate application key:

    php artisan key:generate

Test User

Use the following credentials to log in as a test user:

Running the Application

  1. Start the development server:

    php artisan serve
  2. Visit http://localhost:8000 in your web browser.

  3. Log in using the provided test user credentials.

Contributing

If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.

Happy coding!

About

This repository is useful to learn the basic concepts of Laravel and to get familiar with the eco-system of the Laravel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages