DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for July 21st, 2022: What did you learn this week?
Nick Taylor
Nick Taylor

Posted on

July 21st, 2022: What did you learn this week?

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

Image of the brain

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

#todayilearned

Summarize a concept that is new to you.

Photo by Joshua Dow on Unsplash

Top comments (9)

Collapse
timoye profile image
Timothy Soladoye

I learnt morphMap

  Relation::morphMap([
        'customers' => 'App\Customer',
        'warehouses' => 'App\Warehouse',
    ]);
Enter fullscreen mode Exit fullscreen mode

to resolve class names while using Morph in Laravel
It is awesome!
Read more on Joseph Silber's Article

Collapse
nickytonline profile image
Nick Taylor Author

It's morphin' time!

The Power Rangers morphing

Collapse
codercatdev profile image
Alex Patterson

I thought you could pass a ref through props, instead you need to use forwardRef

dev.to/sajithpradeep/understanding...

Collapse
nickytonline profile image
Nick Taylor Author

It's True - Dwight Shrute

Collapse
thomasbnt profile image
Thomas Bnt

Learned more how to use CORS and Express for an API. 🀩

Collapse
nickytonline profile image
Nick Taylor Author

Nice!

A kangaroo playing an electric guitar

Collapse
onwuemene profile image
Joshua

learned Sass and I worked on a project with Sass.

Collapse
nickytonline profile image
Nick Taylor Author

Jean-Luc Picard from Star Trek TNG saying Well done!

Collapse
sosodope profile image
Sodope

Learned that lodash has a camelCase method

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.