Giter VIP home page Giter VIP logo

dev-notes's Introduction

dev-notes

  1. Laravel API toolkit: https://laravel-news.com/laravel-api-toolkit

  2. php artisan make:model "Cars" -m // create model with migration

  3. https://laraveldaily.com/lesson/eloquent-the-expert-level/artisan-make-model-options Eloquent: The Expert Level

  4. https://benjamincrozat.com/generate-laravel-factories-chatgpt generate laravel factories with chat gpt

  5. When to use Traits, Interface and Abstract classes in PHP https://www.youtube.com/watch?v=x9bj30cWolA

  • An Abstract Class can contain method signatures as well as common methods, but can't be instantiated on its own. Good for creating a common parent to share between classes.
  • A Trait is a group of properties and methods for code re-use - common methods and properties, and multiple can be added to a single class. Good for organization and reducing repetition.
  • An Interface is a set of method signatures (no properties) to enforce implementation in the class they're added to. Good for adding structure and standardization.

In other words, Interfaces are blueprints for classes (they contain method declarations, not body), Traits contain reusable methods and properties and each class can use multiple traits, and Abstract classes are extended, they can contain abstract functions so they have only declaration not the body, and are kind of mix of Traits and Interfaces, cannot be instantieted

  1. https://www.freecodecamp.org/news/react-hooks-useeffect-usestate-and-usecontext/ How to Use React Hooks โ€“ useEffect, useState, and useContext Code Examples

  2. https://nolanlawson.com/2023/12/02/lets-learn-how-modern-javascript-frameworks-work-by-building-one/

  3. https://www.youtube.com/watch?v=Uet-bpytdaw extract validation from controller to request class

  4. Process large csv in Laravel with jobs and chunks https://laravel-news.com/how-to-process-large-csv-files-with-laravel

  5. TIL after you clone repo, there is chance that now all commits will be pulled, so its necesary to do git fetch origin (this way you sync local with remote commits) and after that git pull so you have latest files locally See more: https://docs.github.com/en/pull-requests/committing-changes-to-your-project/troubleshooting-commits/commit-exists-on-github-but-not-in-my-local-clone

  6. https://www.honeybadger.io/blog/laravel-artisan-processes/ An extensive guide for processes and Artisan commands in Laravel

  7. How to build Laravel API from scratch https://laraveldaily.com/course/api-laravel

  8. https://dev.to/mikevarenek/understanding-laravel-traits-471g Practial use of Laravel traits, nice example: API Response Trait

dev-notes's People

Contributors

npapratovic avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.