Nidal
4 months ago
445
1
Laravel

Reusing my written feature on different Laravel apps

Posted 4 months ago by Nidal

Hello,

Backstory

Let's say that i wrote code (TDD) to implement feature X in a Laravel app. But then i though hmm ... i would like to extract it, and be able to easily install it, or add it to any other Laravel app, whenever i want without rewriting it again from scratch.

Questions

  • What is this called (The act of extracting code to reuse) in the Laravel environment ?
  • Could you link me lessons on Laracasts (and/or to Laravel documentations) on this topic ?
  • How did you personally deal with this problem ?
  • Any advice or common mistakes i should avoid ?

Please sign in or create an account to participate in this conversation.