In Laravel 7, we have a new fluent string feature, and that allows us to string manipulation in a more object-oriented way.
In this video, you will learn about `Illuminate\Support\Stringable`, and we will add own custom method to this class.
𝐅𝐥𝐮𝐞𝐧𝐭 𝐒𝐭𝐫𝐢𝐧𝐠:
🔗 [ Ссылка ]
𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐌𝐚𝐜𝐫𝐨𝐬 - 𝐇𝐨𝐰 𝐭𝐨 𝐜𝐫𝐞𝐚𝐭𝐞 𝐚 𝐌𝐚𝐜𝐫𝐨? 𝐇𝐨𝐰 𝐭𝐨 𝐜𝐫𝐞𝐚𝐭𝐞 𝐚 𝐜𝐥𝐚𝐬𝐬-𝐛𝐚𝐬𝐞𝐝 𝐦𝐚𝐜𝐫𝐨 𝐮𝐬𝐢𝐧𝐠 𝐦𝐢𝐱𝐢𝐧?
🔗 [ Ссылка ]
2:19 Example of Fluent String Operations
4:34 Add own custom method to Stringable Class
8:00 Call String helpers as a property instead of method
𝐖𝐡𝐚𝐭'𝐬 𝐧𝐞𝐰 𝐢𝐧 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝟕?
🔗 [ Ссылка ]
#Laravel, #Laravel7
Also, follow us on:
𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: [ Ссылка ]
𝐓𝐰𝐢𝐭𝐭𝐞𝐫: [ Ссылка ]
Ещё видео!