Question: Can someone help me with a php larvel database CRUD assignment. I need help creaeting an interactive database that uses the Leverage Eloquent model for
Can someone help me with a php larvel database CRUD assignment.
I need help creaeting an interactive database that uses the Leverage Eloquent model for baseball player information. We have to create a tile or card that when clicked on shows the following player information:
It should have the following information for a player:
- First name (text)
- Last name (text)
- Team (text)
- Jersey number (2 characters, since 0 and 00 are valid);
- Position (valid positions are: P, C, 1B, 2B, 3B, SS, LF, CF, RF)
- Age (integer)
- On the page where you list all players (index), the column headers should be a clickable link that when clicked redisplays the players in descending or ascending order.
- first name, last name, team, position, when clicked, should display players in ascending order based off the field that was clicked; position sorted order is as given above
- age, when clicked, displays players in descending order by age
To test it we need to run the localhost command like php -S localhost:8000
or php artisan serve
Please let me know what commands you used to install your vender folders for your larvel and others. Composer commands would be nice!
Thanks in advance!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
