That's strange.. Are you sure that last 'High' doesn't contain extra spacing or anything?
The getProductCodeAttribute should work, though you won't be able to query it like you try. It will...
If you want simple graphs I think ChartJS one is the easiest to use, and they look very good as well...
Try this: // Start query... $query->orderByRaw("FIELD(priority, 'High', 'Medium', 'Low')&quo...
You can create a new migration for adding the fields, that way when you run php artisan migrate it w...
The Laravel portal for problem solving, knowledge sharing and community building.