bradtraversy / laragigs

Laravel job listing app
610 stars 421 forks source link

Refactor introduces form request, cleanup, return types, simplification #11

Open niladam opened 2 years ago

niladam commented 2 years ago

This refactor introduces the following:

  1. FormRequests which all use array for rules (makes it easier to add rules in the future);
  2. Return types where possible.
  3. Simplifies some of the Controllers logic.
  4. Adds comments (might be redundant).
  5. Groups all the auth methods under a single group to avoid duplication.
  6. Introduces a new controller ListingManageController (with a single invokable method for now);

Enjoy! Just a few minutes of exercise ;)