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
- For Laragon
- 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
- Install [๐ฑ Postman] or [๐ง ApiDog] or [โก Bruno]
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]
- Learn the basic composer commands
- Try out installing basic composer packages as [๐ง Laravel Debugbar]
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
Exampleand 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)
- For button different view
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