Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NomadPHP - The Laravel Core - Demystify The Beast

NomadPHP - The Laravel Core - Demystify The Beast

14d39e65f615fd6dcb9dd44ea7f7995b?s=128

Christoph Rumpel

January 14, 2021
Tweet

Transcript

  1. The Laravel Core Demystify The Beast

  2. None
  3. @christophrumpel OUR JOURNEY LifeCycle Facades Eloquent

  4. @christophrumpel WHY DO I CARE ABOUT THE CORE?

  5. @christophrumpel It is a tool It takes a lot of

    time It can be overwhelming COMMON EXCUSES
  6. @christophrumpel It speaks to you Debugging Learn from the best

    Become a better dev WHY YOU SHOULD CARE
  7. @christophrumpel OUR JOURNEY LifeCycle Facades Eloquent

  8. Send It Back Handle Request Boot Laravel Browser / HTTP

    Request
  9. @christophrumpel LET IT BEGIN public/index.php

  10. @christophrumpel

  11. @christophrumpel

  12. @christophrumpel

  13. @christophrumpel Application instance Also serves as DIC Bind kernels to

    the container Register Base Providers Set base paths
  14. @christophrumpel

  15. @christophrumpel

  16. @christophrumpel

  17. @christophrumpel

  18. @christophrumpel REQUEST & ROUTER Illuminate/Foundation/Http/Kernel.php

  19. @christophrumpel

  20. @christophrumpel

  21. @christophrumpel

  22. @christophrumpel APP MIDDLEWARE A MIDDLEWARE B REQUEST RESPONSE

  23. @christophrumpel REQUEST & ROUTER Illuminate/Routing/Router.php

  24. @christophrumpel REQUEST & ROUTER Illuminate/Routing/Router.php

  25. @christophrumpel OUR JOURNEY LifeCycle Facades Eloquent

  26. @christophrumpel Magic Proxies Helpers Static interfaces Service Container FACADES ARE

  27. @christophrumpel Misleading Hard to test Tightly coupled Bad practice OR

  28. @christophrumpel OUR EXAMPLE

  29. @christophrumpel REQUEST FACADE Illuminate/Support/Facades/Request.php

  30. @christophrumpel BASE FACADE Illuminate/Support/Facades/Facade.php

  31. @christophrumpel BASE FACADE Illuminate/Support/Facades/Facade.php

  32. @christophrumpel BASE FACADE Illuminate/Support/Facades/Facade.php

  33. @christophrumpel FOUND IT Illuminate/Http/Request.php

  34. @christophrumpel OUR EXAMPLE

  35. @christophrumpel SAME AS

  36. @christophrumpel Misleading Hard to test Tightly coupled Bad practice TRUE

    OR FALSE
  37. @christophrumpel TESTING NOTIFICATIONS

  38. @christophrumpel OUR JOURNEY LifeCycle Facades Eloquent

  39. @christophrumpel ORM Active Record Models Builder ELOQUENT

  40. @christophrumpel DATABASE

  41. @christophrumpel OUR EXAMPLE

  42. @christophrumpel OUR EXAMPLE

  43. @christophrumpel CONFERENCE MODEL

  44. @christophrumpel STATIC WHERE METHOD DOES NOT EXIST Illuminate/Database/Eloquent/Model.php

  45. @christophrumpel STILL NO WHERE METHOD Illuminate/Database/Eloquent/Model.php

  46. @christophrumpel STILL NO WHERE METHOD Illuminate/Database/Eloquent/Model.php

  47. @christophrumpel FOUND IT Eloquent/Builder.php

  48. @christophrumpel OUR EXAMPLE

  49. @christophrumpel GET FIRST CONFERENCE Eloquent/Builder trait BuildsQueries

  50. @christophrumpel GET FIRST CONFERENCE Eloquent/Builder trait BuildsQueries

  51. @christophrumpel GET FIRST CONFERENCE Eloquent/Builder trait BuildsQueries

  52. @christophrumpel OUR EXAMPLE

  53. @christophrumpel NO SPEAKERS PROPERTY

  54. @christophrumpel Content-Security-Policy: policy NO SPEAKERS PROPERTY Illuminate/Database/Eloquent/Model.php

  55. @christophrumpel CHECK ATTRIBUTES Base Eloquent Model HasAttribute concern

  56. @christophrumpel CHECK ATTRIBUTES Base Eloquent Model HasAttribute concern

  57. @christophrumpel

  58. @christophrumpel

  59. @christophrumpel OUR EXAMPLE

  60. @christophrumpel OUR EXAMPLE Conference Model

  61. @christophrumpel OUR EXAMPLE Eloquent Builder

  62. @christophrumpel OUR EXAMPLE Eloquent Builder

  63. @christophrumpel OUR EXAMPLE Conference Model

  64. @christophrumpel OUR JOURNEY LifeCycle Facades Eloquent

  65. @christophrumpel Master your tools. Your Framework is one of them.

  66. @christophrumpel NO SPEAKERS PROPERTY Base Eloquent Model Laravel Core Adventures

    https://laravelcoreadventures.com @christophrumpel
  67. @christophrumpel

  68. @christophrumpel HTTPS://LARAVELCOREADVENTURES.COM 15% DISCOUNT "LCA-LOVES-NOMADPHP"

  69. @christophrumpel MASTERING PHPSTROM

  70. @christophrumpel MASTERING PHPSTROM HTTPS://MASTERINGPHPSTORM.COM/

  71. @christophrumpel https://divinglaravel.com https://christoph-rumpel.com https://laravelcoreadventures.com https://christoph-rumpel.com/speaking https://speakerdeck.com/christophrumpel RESOURCES