pineco.de
Appending Web and API URLs to Eloquent Models - Pine
Adding URLs to our models can be very useful. Just imagine, we could automatically generate the URL with the help of Laravel in the background, then make it usable event from the model directly or maybe as a JSON representation from the front-end. We just use the property, and nothing else to do. The Basic …