Setup and Laravel Basics

Home

Learning Laravel Roadmap Week 1-2

  • This week we will go on through initial setup and laravel basics

Week 1: Foundation and Setup

Development Environment Setup

For both API and Web developers

  • Install Laragon [๐Ÿ“ฅ Download] or Laragonzo [๐Ÿš€ Setup] (preferred)
    • For Laragon
      • Just Install the full edition
    • For Laragonzo (Preferred and Updated)
      • Enable php, apache, mysql, heidisql, git portable, nodejs
  • Then add the laragon to the path (This will add all the binaries to be used from the terminal)
    • Just click Menu > Tools >ย Pathย > Addย Laragon to Path.

For API developers


PHP and Laravel Fundamentals

Master PHP basics (if not already known) [๐Ÿ“š Learn PHP]

  • Just look into it lightly related to OOP and how php works
  • For deeper understanding including web server and routing concepts (optional) [๐ŸŽฏ Complete PHP Tutorial]

Try out creating and running a blank laravel project [โš™๏ธ Installation Guide]

  • Create a laravel project using laragon/ laragonzo
  • Create a laravel project using command line (preferably use the built in terminal of the laragon else use cmd or powershell or windows terminal)
  • View the output in the browser
    • Find out the way to view the output in the browser

Learn how the env files work

  • .env file is present on the root directory of the laravel project
  • You just need to look into it, or ask chat gpt to explain the content of your .env file (if the .env file is not present use .env.example file)

Understand Laravel project structure [๐Ÿ—๏ธ Project Guide]

  • Briefly look into the structure of the laravel project, where things go and what is included in the basic laravel project

Learn about Composer and package management [๐Ÿ“ฆ Package Guide]

Study how to create the laravel controller

  • Write the controller to
    • show the view of the todo app
    • create the controller for create, edit and soft delete as well as restore

Study Laravelโ€™s routing system [๐Ÿ›ฃ๏ธ Routing Guide]

  • View how routing works in laravel
  • Create a routes for todo application
    • View (index)
    • Create
    • Edit
    • Delete (Softdelete)
    • Recover deleted entry

Explore Laravel views [๐Ÿ‘๏ธ Views Guide]

  • Learn how to create views
  • Create the view for todo app, single paged which has list of todos, create function, edit function and soft delete function with strikethrough Example and undo delete button

Explore Blade templating engine [๐Ÿ”ช Blade Guide]

  • Learn about creating component views
  • Learn about blade template components
  • Update the view with the templating engine
    • For button different view
      • Create atleast one dynamic template blade which accepts variable and uses it
    • For nav bar a different view (if any)

Explore how the models work [๐Ÿ“ MVC Guide]

  • Learn how to work with eloquent ORM
  • Create relative models for your todo projects

Explore how the migration and seeders work [๐Ÿ”„ Migration Guide] [๐ŸŒฑ Seeding Guide]

  • Explore how to create migrations
    • Create the database structure using the migration
  • Explore how to create seeders
    • Create seeders for the model thats related to above migration

Practice creating basic routes and controllers [โšก CRUD Guide]

  • Learn the interlink the routes to the controllers
    • There should be atleast 4 routes but must be more than 4 in all cases
    • The controller logic should be well coded and with proper comments before the code

Requirements

  • Each team member are expected to create a repository of their own name appended with TODO
    • i.e. the name of the repository will be โ€œChandanShakya-TODOโ€
  • The commits message should be descriptive

  • Create a repository under the NCCSSoftware organization, under the Team InternWeb

  • Deadline: December 15, 00:00 (i.e. before Sunday 13th, Nepal Time +5:45)

  • Take your time

    • Ask for help on discord
    • Ask mentors on Mentor visits