Model Factories

Introduction:

Laravel comes with a feature called Model Factories that are designed to allow you to quickly build out “fake” models.

These have several use cases so that you can use them to build out “dummy” models which can be used [...]

Continue reading

  • 249
  • 308
  • By Bablu Ahmed
  • Posted 1 year ago

How to Register & Use Service Providers

Introduction:

Go ahead and look at the contents of the config/app.php file. You'll find an array entry that lists all the service providers that will be loaded during the bootstrapping of the Laravel application (with core aplication). If we [...]

Continue reading

  • 249
  • 308
  • By Bablu Ahmed
  • Posted 1 year ago

Authentication System

Middleware: Only allow authenticated users to access a given route. For protecting/restricting routes, we need to use Middleware.

Middleware Steps:

1. Creating

2. Registering

3. Uses

#01 Creating:

Continue reading

  • 249
  • 308
  • By Bablu Ahmed
  • Posted 1 year ago