کارگاه باز کردن نشانها
Unlocking Badges Workshop
Together, in this series we'll add an "Unlockable Badge" feature to the Laracasts website. Perhaps when a user reaches a certain XP threshold, they unlock a badge. Or when they reach 500 "Best Answer" slots, they earn yet another badge. You get the idea.
Let's research and implement this feature using TDD from scratch.
قسمتهای دوره
با یک مثال شروع کنید
9m 23sKickstart new features with confidence using TDD. Learn how to define behavior through examples and build your system step-by-step from the ground up!
جعل رویداد
14m 6sLearn how to test event broadcasting in your app by faking events when users earn experience, ensuring achievements and badges trigger seamlessly.
از توسعه مبتنی بر تست برای ساخت مهاجرتها و ویژگیها استفاده کنید
6m 1sBuild an Achievement model and database table using TDD. Learn how test-driven development streamlines migrations and attribute creation in Laravel!
یک کاربر میتواند دستاورد دریافت کند
8m 24sLearn how to link users with achievements using a generic pivot table. Build dynamic relationships in your app to track and award user accomplishments easily!
اگر از دیتابیس استفاده نمیکردیم چطور؟
11m 54sExplore alternative ways to manage achievement badges without a database. Experiment with logic placement in Laravel and decide what works best for your app!
Explore the pros and cons of skipping the database for user achievements. See why reverting to a better Laravel solution improves reliability and performance!
همگامسازی دستاوردهای کاربر با کلکشنها
21m 45sLearn how to sync user achievements in Laravel using collections. Build a clean system to register and update achievements based on earned experience points!
دو روش برای سازماندهی یک پروژه
8m 22sExplore two effective ways to organize achievement-related files in Laravel, including service providers, events, and listeners for cleaner, maintainable projects!
پیشفرضهای معقول با توسعه مبتنی بر تست
8m 48sUse TDD to set smart default achievement names based on class names. Streamline your Laravel development with clean, reliable, and automated naming!
یک کامند Artisan برای تولید دستاوردهای جدید
7m 24sCreate new achievement classes faster with a custom Artisan command. Boost your Laravel workflow with handy scaffolding tools that save time and effort!
انواع دستاورد باید با هم زندگی کنند
2m 44sOrganize your Laravel app by grouping achievement type classes into a dedicated directory. Keep your code clean, clear, and easy to maintain!
مشاهده دستاوردها: بخش ۱
4m 36sBuild a dynamic achievement view in Laravel by seeding badges and toggling CSS to show earned status. See user progress clearly and interactively in your app!
مشاهده دستاوردها: بخش ۲
7m 40sLearn to build a dynamic view that shows which achievements a user has earned or missed. Enhance your Laravel app with clear, engaging achievement displays!
به یک کامند کنسولی Seeder نیاز داریم
9m 56sBuild an Artisan seeder command with TDD to sync user achievements on deployment. Ensure all users start with accurate achievement data effortlessly!
نشانهای واقعی دستاورد Laracasts
5m 34sJoin me as I build the real Laracasts achievement badges. See how to design and add badges that reward your progress with style and clarity!
پیشفرضهای معقولتر برای دستاوردها
6m 8sSimplify achievements by setting kebab-case icon defaults and converting descriptions to methods. Streamline your Laravel code with smart, practical improvements!
کش کردن دستاوردها
4m 44sFix the N+1 issue by caching achievements forever in Laravel. Learn smart caching strategies to boost performance and simplify future updates effortlessly!
کلکشنهای دستاورد سفارشی
7m 18sLearn how to create custom Eloquent collections in Laravel by overriding the newCollection method. Enhance your queries with tailored collection classes easily!
رنگبندی دستاوردها
7m 42sLearn how to color code achievements by skill level in Laravel. Visualize beginner, intermediate, and advanced with dynamic UI backgrounds for clear user feedback!
مرتبسازی کلکشن سفارشی با جداول جستجو
10m 59sLearn to sort custom collections in Laravel using lookup tables. Master skill-level sorting and discover where to place sorting logic for clean code!
همین، تمام
6m 29sWrap up your learning journey with practical techniques you can apply to any Laravel component or feature. Boost your skills and build with confidence!




