This Sport Club Laravel project is a web application built with Laravel to manage the operations of a sports club, including player and trainer management, match scheduling, and user authentication. Below is a detailed list of all routes used in the project.
- PHP >= 8.0
- Composer
- MySQL or any preferred database
- Node.js and npm (optional for front-end scaffolding)
-
Clone the repository:
git clone https://github.com/YazanM23/Sport_Club_Laravel cd Sport_Club_Laravel -
Install dependencies:
composer install
-
Set up environment variables:
cp .env.example .env
-
Generate application key:
php artisan key:generate
-
Run database migrations:
php artisan migrate
-
Start the application:
php artisan serve
-
Home:
GET /
Displays the welcome page. -
Contact Page:
GET /contact
Displays the contact page.
-
List All Posts:
GET /posts
Controller:PostsController@index
Displays a list of all posts. -
Show Post Details:
GET /posts/{post}
Controller:PostsController@show
Displays the details of a specific post. -
Submit a Post:
POST /posts
Controller:PostsController@posts
Allows submission of a new post.
-
View Last Match:
GET /index
Controller:ViewMatchesController@getLastMatch
Displays the last match details. -
List Matches:
GET /matches
Controller:ViewMatchesController@getMatches
Displays a list of all matches. -
Create Match Form:
GET /createMatch
Controller:MatchesController@getPlayers
Displays the form to create a match. -
Create Match:
POST /createMatch
Controller:MatchesController@createMatch
Creates a new match.
-
View Player Information:
GET /player
Controller:PlayerController@playerInformation
Displays detailed information about a player. -
Player Table Management:
GET /table
Controller:TableController@getPlayers
Displays a table of all players.POST /table
Controller:TableController@insertPlayer
Inserts a new player into the table.PUT /table/{username}
Controller:TableController@updatePlayer
Updates a player's information.DELETE /table/{username}
Controller:TableController@deletePlayer
Deletes a player from the table.
-
View Trainer Information:
GET /trainer
Displays trainer information. -
Trainer Signup:
POST /signup/trainer
Controller:SignUpController@signupTrainer
Allows trainers to sign up.
-
Login:
POST /login
Controller:LoginController@login
Handles user login. -
Sign Out:
GET /signout
Controller:SignOutController@logout
Handles user logout. -
Player Signup:
POST /signup/player
Controller:SignUpController@signupPlayer
Allows players to sign up.
-
Matches Page:
GET /matches
Displays the matches page. -
Players Page:
GET /players
Displays the players page. -
Blog Page:
GET /blog
Displays the blog page. -
Contact Page:
GET /contact
Displays the contact page. -
Sign-In Page:
GET /signin
Displays the sign-in page. -
Sign-Up Page:
GET /signup
Displays the sign-up page. -
Trainer Form:
GET /trainerForm
Displays the trainer form page. -
Player Form:
GET /playerForm
Displays the player form page.
These routes are designed to provide functionality for managing a sports club, including player and trainer management, match scheduling, and user authentication. Each route is tied to a specific controller and view to handle its functionality.
This project is open-source and available under the MIT License.
For queries or feedback, reach out:
- Name: Yazan Mansour
- Email: Yazan.mansour2003@gmail.com