/home/avys/public_html/app/Http/Controllers/LessonsController.php
"bar" => '40',
]);
}
public function department(Request $request){
$common = new CommonController;
$json = json_decode( $common->DereceProgram_GetList($request->route('mod')) );
$facultyid = $request->route('faculty');
$department = array();
$i = 0;
foreach($json as $json_){
if( $json_->UstBirimId == $facultyid ){
$ustBirimAdi = $json_->UstBirimAdi;
foreach($json_->Birim as $json__){
$department[$i]['BirimAdi'] = $json__->BirimAdi;
$department[$i]['BirimId'] = $json__->BirimId;
$department[$i]['ProgramId'] = $json__->AltBirim[0]->Program[0]->ProgramId;
$department[$i]['MufredatTurID'] = $json__->AltBirim[0]->Program[0]->MufredatTurID;
//932001
$i++;
//print_r($json__->AltBirim[0]->Program[0]);
}
}
}
$userSession = $request->session()->get('userSession');
return view('lessons', ["department"=>$department, 'tur' => 3,
'modid' => $request->route('mod'),
'modadi' => $common->dereceProgram[$request->route('mod')],
'ustbirimid' => $request->route('faculty'),
'ustbirimadi' => $ustBirimAdi,
'birimid' => '',
'birimadi' => '',
'programid' => '',
Arguments
/home/avys/public_html/app/Http/Controllers/LessonsController.php
"bar" => '40',
]);
}
public function department(Request $request){
$common = new CommonController;
$json = json_decode( $common->DereceProgram_GetList($request->route('mod')) );
$facultyid = $request->route('faculty');
$department = array();
$i = 0;
foreach($json as $json_){
if( $json_->UstBirimId == $facultyid ){
$ustBirimAdi = $json_->UstBirimAdi;
foreach($json_->Birim as $json__){
$department[$i]['BirimAdi'] = $json__->BirimAdi;
$department[$i]['BirimId'] = $json__->BirimId;
$department[$i]['ProgramId'] = $json__->AltBirim[0]->Program[0]->ProgramId;
$department[$i]['MufredatTurID'] = $json__->AltBirim[0]->Program[0]->MufredatTurID;
//932001
$i++;
//print_r($json__->AltBirim[0]->Program[0]);
}
}
}
$userSession = $request->session()->get('userSession');
return view('lessons', ["department"=>$department, 'tur' => 3,
'modid' => $request->route('mod'),
'modadi' => $common->dereceProgram[$request->route('mod')],
'ustbirimid' => $request->route('faculty'),
'ustbirimadi' => $ustBirimAdi,
'birimid' => '',
'birimadi' => '',
'programid' => '',
Arguments
8
"Undefined offset: 0"
"/home/avys/public_html/app/Http/Controllers/LessonsController.php"
124
array:9 [
"request" => Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"common" => App\Http\Controllers\CommonController {#293}
"json" => array:1 [
0 => {#300}
]
"facultyid" => "28"
"department" => array:119 [
0 => array:4 [
"BirimAdi" => "Acil Hemşireliği"
"BirimId" => 1
"ProgramId" => 5279
"MufredatTurID" => 932001
]
1 => array:4 [
"BirimAdi" => "Adli Bilimler"
"BirimId" => 2
"ProgramId" => 5230
"MufredatTurID" => 932001
]
2 => array:4 [
"BirimAdi" => "Akıllı Sistemler Mühendisliği"
"BirimId" => 5
"ProgramId" => 5232
"MufredatTurID" => 932001
]
3 => array:4 [
"BirimAdi" => "Anatomi (Tıp)"
"BirimId" => 6
"ProgramId" => 5111
"MufredatTurID" => 932001
]
4 => array:4 [
"BirimAdi" => "Antrenörlük Eğitimi"
"BirimId" => 7
"ProgramId" => 5250
"MufredatTurID" => 932001
]
5 => array:4 [
"BirimAdi" => "Arkeoloji"
"BirimId" => 8
"ProgramId" => 5245
"MufredatTurID" => 932001
]
6 => array:4 [
"BirimAdi" => "Avrupa Akdeniz Kültürler ve Turizm"
"BirimId" => 9
"ProgramId" => 5264
"MufredatTurID" => 932001
]
7 => array:4 [
"BirimAdi" => "Bahçe Bitkileri"
"BirimId" => 10
"ProgramId" => 5080
"MufredatTurID" => 932001
]
8 => array:4 [
"BirimAdi" => "Beden Eğitimi ve Spor"
"BirimId" => 11
"ProgramId" => 5156
"MufredatTurID" => 932001
]
9 => array:4 [
"BirimAdi" => "Beslenme Bilimleri"
"BirimId" => 12
"ProgramId" => 5162
"MufredatTurID" => 932001
]
10 => array:4 [
"BirimAdi" => "Bilgisayar Mühendisliği"
"BirimId" => 13
"ProgramId" => 5108
"MufredatTurID" => 932001
]
11 => array:4 [
"BirimAdi" => "Bilgisayar ve Öğretim Teknolojileri Eğitimi"
"BirimId" => 14
"ProgramId" => 5225
"MufredatTurID" => 932001
]
12 => array:4 [
"BirimAdi" => "Bitki Koruma"
"BirimId" => 15
"ProgramId" => 5082
"MufredatTurID" => 932001
]
13 => array:4 [
"BirimAdi" => "Biyoistatistik ve Tıp Bilişimi"
"BirimId" => 16
"ProgramId" => 5120
"MufredatTurID" => 932001
]
14 => array:4 [
"BirimAdi" => "Biyoloji"
"BirimId" => 17
"ProgramId" => 5070
"MufredatTurID" => 932001
]
15 => array:4 [
"BirimAdi" => "Coğrafya"
"BirimId" => 18
"ProgramId" => 5164
"MufredatTurID" => 932001
]
16 => array:4 [
"BirimAdi" => "Çevre Mühendisliği"
"BirimId" => 19
"ProgramId" => 5097
"MufredatTurID" => 932001
]
17 => array:4 [
"BirimAdi" => "Deney Hayvanları Araştırmaları"
"BirimId" => 20
"ProgramId" => 5345
"MufredatTurID" => 932001
]
18 => array:4 [
"BirimAdi" => "Dil ve Konuşma Terapisi"
"BirimId" => 21
"ProgramId" => 5347
"MufredatTurID" => 932001
]
19 => array:4 [
"BirimAdi" => "Dini Danışmanlık ve Rehberlik (Disiplinlerarası)"
"BirimId" => 22
"ProgramId" => 5206
"MufredatTurID" => 932001
]
20 => array:4 [
"BirimAdi" => "Dölerme ve Suni Tohumlama (Veteriner)"
"BirimId" => 23
"ProgramId" => 5148
"MufredatTurID" => 932001
]
21 => array:4 [
"BirimAdi" => "Ebelik"
"BirimId" => 24
"ProgramId" => 5304
"MufredatTurID" => 932001
]
22 => array:4 [
"BirimAdi" => "Eğitim Bilimleri"
"BirimId" => 25
"ProgramId" => 5185
"MufredatTurID" => 932001
]
23 => array:4 [
"BirimAdi" => "Elektrik-Elektronik Mühendisliği"
"BirimId" => 26
"ProgramId" => 5099
"MufredatTurID" => 932001
]
24 => array:4 [
"BirimAdi" => "Evde Hasta Bakımı Hemşireliği (DSPL)"
"BirimId" => 28
"ProgramId" => 5333
"MufredatTurID" => 932001
]
25 => array:4 [
"BirimAdi" => "Evlilik ve Aile Danışmanlığı"
"BirimId" => 29
"ProgramId" => 5231
"MufredatTurID" => 932001
]
26 => array:4 [
"BirimAdi" => "Felsefe"
"BirimId" => 30
"ProgramId" => 5170
"MufredatTurID" => 932001
]
27 => array:4 [
"BirimAdi" => "Felsefe ve Din Bilimleri"
"BirimId" => 31
"ProgramId" => 5172
"MufredatTurID" => 932001
]
28 => array:4 [
"BirimAdi" => "Fizik"
"BirimId" => 32
"ProgramId" => 5072
"MufredatTurID" => 932001
]
29 => array:4 [
"BirimAdi" => "Fizyoloji (Tıp)"
"BirimId" => 33
"ProgramId" => 5374
"MufredatTurID" => 932001
]
30 => array:4 [
"BirimAdi" => "Gıda Mühendisliği"
"BirimId" => 35
"ProgramId" => 5101
"MufredatTurID" => 932001
]
31 => array:4 [
"BirimAdi" => "Girişimcilik ve Yenilikçilik (DSPL)"
"BirimId" => 37
"ProgramId" => 5340
"MufredatTurID" => 932001
]
32 => array:4 [
"BirimAdi" => "Görsel İletişim Tasarımı"
"BirimId" => 38
"ProgramId" => 5241
"MufredatTurID" => 932001
]
33 => array:4 [
"BirimAdi" => "Güzel Sanatlar Eğitimi"
"BirimId" => 39
"ProgramId" => 5365
"MufredatTurID" => 932001
]
34 => array:4 [
"BirimAdi" => "Halk Sağlığı Hemşireliği"
"BirimId" => 41
"ProgramId" => 5153
"MufredatTurID" => 932001
]
35 => array:4 [
"BirimAdi" => "Harita Mühendisliği"
"BirimId" => 42
"ProgramId" => 5105
"MufredatTurID" => 932001
]
36 => array:4 [
"BirimAdi" => "Hayvan Besleme ve Beslenme Hastalıkları (Veteriner)"
"BirimId" => 43
"ProgramId" => 5146
"MufredatTurID" => 932001
]
37 => array:4 [
"BirimAdi" => "Hemşirelik"
"BirimId" => 44
"ProgramId" => 5254
"MufredatTurID" => 932001
]
38 => array:4 [
"BirimAdi" => "Histoloji ve Embriyoloji (Tıp)"
"BirimId" => 46
"ProgramId" => 5127
"MufredatTurID" => 932001
]
39 => array:4 [
"BirimAdi" => "İktisat"
"BirimId" => 47
"ProgramId" => 5182
"MufredatTurID" => 932001
]
40 => array:4 [
"BirimAdi" => "İletişim Bilimleri (Disiplinlerarası)"
"BirimId" => 48
"ProgramId" => 5272
"MufredatTurID" => 932001
]
41 => array:4 [
"BirimAdi" => "İlköğretim"
"BirimId" => 49
"ProgramId" => 5196
"MufredatTurID" => 932001
]
42 => array:4 [
"BirimAdi" => "İnşaat Mühendisliği"
"BirimId" => 50
"ProgramId" => 5103
"MufredatTurID" => 932001
]
43 => array:4 [
"BirimAdi" => "İslam Tarihi ve Sanatları"
"BirimId" => 51
"ProgramId" => 5174
"MufredatTurID" => 932001
]
44 => array:4 [
"BirimAdi" => "İstatistik"
"BirimId" => 52
"ProgramId" => 5074
"MufredatTurID" => 932001
]
45 => array:4 [
"BirimAdi" => "İşletme"
"BirimId" => 53
"ProgramId" => 5180
"MufredatTurID" => 932001
]
46 => array:4 [
"BirimAdi" => "Kadın ve Aile Araştırmaları"
"BirimId" => 54
"ProgramId" => 5179
"MufredatTurID" => 932001
]
47 => array:4 [
"BirimAdi" => "Kamu Hukuku"
"BirimId" => 55
"ProgramId" => 5177
"MufredatTurID" => 932001
]
48 => array:4 [
"BirimAdi" => "Kamu Yönetimi"
"BirimId" => 56
"ProgramId" => 5183
"MufredatTurID" => 932001
]
49 => array:4 [
"BirimAdi" => "Kardiyopulmoner Fizyoterapi"
"BirimId" => 57
"ProgramId" => 5160
"MufredatTurID" => 932001
]
50 => array:4 [
"BirimAdi" => "Kimya"
"BirimId" => 58
"ProgramId" => 5076
"MufredatTurID" => 932001
]
51 => array:4 [
"BirimAdi" => "Kimya Mühendisliği"
"BirimId" => 59
"ProgramId" => 5208
"MufredatTurID" => 932001
]
52 => array:4 [
"BirimAdi" => "Kulak Burun Boğaz (Odyoloji)"
"BirimId" => 62
"ProgramId" => 5122
"MufredatTurID" => 932001
]
53 => array:4 [
"BirimAdi" => "Makine Mühendisliği"
"BirimId" => 63
"ProgramId" => 5107
"MufredatTurID" => 932001
]
54 => array:4 [
"BirimAdi" => "Malzeme Bilimi ve Mühendisliği"
"BirimId" => 64
"ProgramId" => 5109
"MufredatTurID" => 932001
]
55 => array:4 [
"BirimAdi" => "Matematik"
"BirimId" => 65
"ProgramId" => 5078
"MufredatTurID" => 932001
]
56 => array:4 [
"BirimAdi" => "Matematik ve Fen Bilimleri Eğitimi"
"BirimId" => 66
"ProgramId" => 5297
"MufredatTurID" => 932001
]
57 => array:4 [
"BirimAdi" => "Metalurji ve Malzeme Mühendisliği"
"BirimId" => 67
"ProgramId" => 5320
"MufredatTurID" => 932001
]
58 => array:4 [
"BirimAdi" => "Moleküler Biyoloji ve Genetik"
"BirimId" => 68
"ProgramId" => 5268
"MufredatTurID" => 932001
]
59 => array:4 [
"BirimAdi" => "Moleküler Tıp (DSPL)"
"BirimId" => 69
"ProgramId" => 5237
"MufredatTurID" => 932001
]
60 => array:4 [
"BirimAdi" => "Müzik"
"BirimId" => 70
"ProgramId" => 5271
"MufredatTurID" => 932001
]
61 => array:4 [
"BirimAdi" => "Nanobilim ve Nanoteknoloji (İngilizce)"
"BirimId" => 71
"ProgramId" => 5235
"MufredatTurID" => 932001
]
62 => array:4 [
"BirimAdi" => "Ortaöğretim Sosyal Alanlar Eğitimi"
"BirimId" => 73
"ProgramId" => 5215
"MufredatTurID" => 932001
]
63 => array:4 [
"BirimAdi" => "Özel Hukuk (OMÜ-KTÜ Ortak)"
"BirimId" => 75
"ProgramId" => 5228
"MufredatTurID" => 932001
]
64 => array:4 [
"BirimAdi" => "Psikoloji"
"BirimId" => 79
"ProgramId" => 5244
"MufredatTurID" => 932001
]
65 => array:4 [
"BirimAdi" => "Radyolojik Bilimler"
"BirimId" => 80
"ProgramId" => 5159
"MufredatTurID" => 932001
]
66 => array:4 [
"BirimAdi" => "Resim"
"BirimId" => 81
"ProgramId" => 5263
"MufredatTurID" => 932001
]
67 => array:4 [
"BirimAdi" => "Ruh Sağlığı ve Hastalıkları Hemşireliği"
"BirimId" => 83
"ProgramId" => 5154
"MufredatTurID" => 932001
]
68 => array:4 [
"BirimAdi" => "Sağlık Yönetimi"
"BirimId" => 84
"ProgramId" => 5161
"MufredatTurID" => 932001
]
69 => array:4 [
"BirimAdi" => "Sanat Tarihi"
"BirimId" => 86
"ProgramId" => 5266
"MufredatTurID" => 932001
]
70 => array:4 [
"BirimAdi" => "Sinir Bilimleri"
"BirimId" => 88
"ProgramId" => 5158
"MufredatTurID" => 932001
]
71 => array:4 [
"BirimAdi" => "Sosyoloji"
"BirimId" => 89
"ProgramId" => 5169
"MufredatTurID" => 932001
]
72 => array:4 [
"BirimAdi" => "Spor Yöneticiliği"
"BirimId" => 90
"ProgramId" => 5262
"MufredatTurID" => 932001
]
73 => array:4 [
"BirimAdi" => "Su Ürünleri Hastalıkları (Veteriner)"
"BirimId" => 91
"ProgramId" => 5247
"MufredatTurID" => 932001
]
74 => array:4 [
"BirimAdi" => "Tarım Ekonomisi"
"BirimId" => 93
"ProgramId" => 5084
"MufredatTurID" => 932001
]
75 => array:4 [
"BirimAdi" => "Tarım Makinaları ve Teknolojileri Mühendisliği"
"BirimId" => 94
"ProgramId" => 5086
"MufredatTurID" => 932001
]
76 => array:4 [
"BirimAdi" => "Tarımsal Biyoteknoloji"
"BirimId" => 95
"ProgramId" => 5095
"MufredatTurID" => 932001
]
77 => array:4 [
"BirimAdi" => "Tarımsal Yapılar ve Sulama"
"BirimId" => 96
"ProgramId" => 5088
"MufredatTurID" => 932001
]
78 => array:4 [
"BirimAdi" => "Tarih"
"BirimId" => 97
"ProgramId" => 5166
"MufredatTurID" => 932001
]
79 => array:4 [
"BirimAdi" => "Tarla Bitkileri"
"BirimId" => 98
"ProgramId" => 5090
"MufredatTurID" => 932001
]
80 => array:4 [
"BirimAdi" => "Taşınmaz Değerleme ve Geliştirme"
"BirimId" => 99
"ProgramId" => 5209
"MufredatTurID" => 932001
]
81 => array:4 [
"BirimAdi" => "Temel Eğitim"
"BirimId" => 100
"ProgramId" => 5301
"MufredatTurID" => 932001
]
82 => array:4 [
"BirimAdi" => "Temel İslam Bilimleri"
"BirimId" => 101
"ProgramId" => 5176
"MufredatTurID" => 932001
]
83 => array:4 [
"BirimAdi" => "Tıbbi Biyokimya"
"BirimId" => 102
"ProgramId" => 5115
"MufredatTurID" => 932001
]
84 => array:4 [
"BirimAdi" => "Tıbbi Biyoloji"
"BirimId" => 103
"ProgramId" => 5125
"MufredatTurID" => 932001
]
85 => array:4 [
"BirimAdi" => "Tıbbi Farmakoloji"
"BirimId" => 104
"ProgramId" => 5117
"MufredatTurID" => 932001
]
86 => array:4 [
"BirimAdi" => "Tıbbi Mikrobiyoloji"
"BirimId" => 105
"ProgramId" => 5113
"MufredatTurID" => 932001
]
87 => array:4 [
"BirimAdi" => "Tıbbi Resimleme"
"BirimId" => 106
"ProgramId" => 5257
"MufredatTurID" => 932001
]
88 => array:4 [
"BirimAdi" => "Toprak Bilimi ve Bitki Besleme"
"BirimId" => 107
"ProgramId" => 5092
"MufredatTurID" => 932001
]
89 => array:4 [
"BirimAdi" => "Turizm İşletmeciliği"
"BirimId" => 108
"ProgramId" => 5275
"MufredatTurID" => 932001
]
90 => array:4 [
"BirimAdi" => "Türk Dili ve Edebiyatı"
"BirimId" => 109
"ProgramId" => 5168
"MufredatTurID" => 932001
]
91 => array:4 [
"BirimAdi" => "Türkçe Eğitimi"
"BirimId" => 110
"ProgramId" => 5202
"MufredatTurID" => 932001
]
92 => array:4 [
"BirimAdi" => "Türkçe ve Sosyal Bilimler Eğitimi"
"BirimId" => 111
"ProgramId" => 5293
"MufredatTurID" => 932001
]
93 => array:4 [
"BirimAdi" => "Uluslararası Düzenleyici Bilim (DSPL)"
"BirimId" => 112
"ProgramId" => 5248
"MufredatTurID" => 932001
]
94 => array:4 [
"BirimAdi" => "Uluslararası Ticaret ve İşletmecilik"
"BirimId" => 113
"ProgramId" => 5269
"MufredatTurID" => 932001
]
95 => array:4 [
"BirimAdi" => "Veteriner Histoloji ve Embriyoloji"
"BirimId" => 114
"ProgramId" => 5309
"MufredatTurID" => 932001
]
96 => array:4 [
"BirimAdi" => "Veterinerlik Anatomisi"
"BirimId" => 115
"ProgramId" => 5139
"MufredatTurID" => 932001
]
97 => array:4 [
"BirimAdi" => "Veterinerlik Besin Hijyeni Ve Teknolojisi"
"BirimId" => 116
"ProgramId" => 5141
"MufredatTurID" => 932001
]
98 => array:4 [
"BirimAdi" => "Veterinerlik Biyokimyası"
"BirimId" => 117
"ProgramId" => 5152
"MufredatTurID" => 932001
]
99 => array:4 [
"BirimAdi" => "Veterinerlik Cerrahisi"
"BirimId" => 118
"ProgramId" => 5223
"MufredatTurID" => 932001
]
100 => array:4 [
"BirimAdi" => "Veterinerlik Doğum Ve Jinekolojisi"
"BirimId" => 119
"ProgramId" => 5144
"MufredatTurID" => 932001
]
101 => array:4 [
"BirimAdi" => "Veterinerlik Farmakoloji Ve Toksikolojisi"
"BirimId" => 120
"ProgramId" => 5265
"MufredatTurID" => 932001
]
102 => array:4 [
"BirimAdi" => "Veterinerlik Fizyolojisi"
"BirimId" => 121
"ProgramId" => 5239
"MufredatTurID" => 932001
]
103 => array:4 [
"BirimAdi" => "Veterinerlik Hekimliği Tarihi Ve Deontoloji (DSPL)"
"BirimId" => 122
"ProgramId" => 5233
"MufredatTurID" => 932001
]
104 => array:4 [
"BirimAdi" => "Veterinerlik İç Hastalıkları"
"BirimId" => 123
"ProgramId" => 5260
"MufredatTurID" => 932001
]
105 => array:4 [
"BirimAdi" => "Veterinerlik Mikrobiyolojisi"
"BirimId" => 124
"ProgramId" => 5214
"MufredatTurID" => 932001
]
106 => array:4 [
"BirimAdi" => "Veterinerlik Parazitolojisi"
"BirimId" => 125
"ProgramId" => 5207
"MufredatTurID" => 932001
]
107 => array:4 [
"BirimAdi" => "Veterinerlik Viroloji"
"BirimId" => 127
"ProgramId" => 5150
"MufredatTurID" => 932001
]
108 => array:4 [
"BirimAdi" => "Veterinerlik Zootekni"
"BirimId" => 128
"ProgramId" => 5253
"MufredatTurID" => 932001
]
109 => array:4 [
"BirimAdi" => "Yabancı Diller Eğitimi"
"BirimId" => 129
"ProgramId" => 5191
"MufredatTurID" => 932001
]
110 => array:4 [
"BirimAdi" => "Yenilenebilir Enerji ve Uygulamaları (DSPL)"
"BirimId" => 130
"ProgramId" => 5267
"MufredatTurID" => 932001
]
111 => array:4 [
"BirimAdi" => "Zootekni"
"BirimId" => 131
"ProgramId" => 5094
"MufredatTurID" => 932001
]
112 => array:4 [
"BirimAdi" => "Sosyal Hizmet"
"BirimId" => 133
"ProgramId" => 5378
"MufredatTurID" => 932001
]
113 => array:4 [
"BirimAdi" => "Nöropazarlama (DSPL)"
"BirimId" => 134
"ProgramId" => 5379
"MufredatTurID" => 932001
]
114 => array:4 [
"BirimAdi" => "Fizyoterapi ve Rehabilitasyon"
"BirimId" => 135
"ProgramId" => 5396
"MufredatTurID" => 932001
]
115 => array:4 [
"BirimAdi" => "Turizm Rehberliği"
"BirimId" => 136
"ProgramId" => 5397
"MufredatTurID" => 932001
]
116 => array:4 [
"BirimAdi" => "Sağlık Hukuku"
"BirimId" => 137
"ProgramId" => 5401
"MufredatTurID" => 932001
]
117 => array:4 [
"BirimAdi" => "Kenevir Araştırmaları (DSPL)"
"BirimId" => 139
"ProgramId" => 5418
"MufredatTurID" => 932001
]
118 => array:2 [
"BirimAdi" => "Jeomorfoloji"
"BirimId" => 140
]
]
"i" => 118
"json_" => {#300}
"ustBirimAdi" => "Lisansüstü Eğitim Enstitüsü"
"json__" => {#722}
]
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php
/**
* Get the middleware assigned to the controller.
*
* @return array
*/
public function getMiddleware()
{
return $this->middleware;
}
/**
* Execute an action on the controller.
*
* @param string $method
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
/**
* Handle calls to missing methods on the controller.
*
* @param string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $parameters)
{
throw new BadMethodCallException(sprintf(
'Method %s::%s does not exist.', static::class, $method
));
}
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"2"
"28"
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php
/**
* Get the middleware assigned to the controller.
*
* @return array
*/
public function getMiddleware()
{
return $this->middleware;
}
/**
* Execute an action on the controller.
*
* @param string $method
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
/**
* Handle calls to missing methods on the controller.
*
* @param string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $parameters)
{
throw new BadMethodCallException(sprintf(
'Method %s::%s does not exist.', static::class, $method
));
}
}
Arguments
array:2 [
0 => App\Http\Controllers\LessonsController {#229}
1 => "department"
]
array:3 [
0 => Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"mod" => "2"
"faculty" => "28"
]
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
{
$this->container = $container;
}
/**
* Dispatch a request to a given controller and method.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $controller
* @param string $method
* @return mixed
*/
public function dispatch(Route $route, $controller, $method)
{
$parameters = $this->resolveClassMethodDependencies(
$route->parametersWithoutNulls(), $controller, $method
);
if (method_exists($controller, 'callAction')) {
return $controller->callAction($method, $parameters);
}
return $controller->{$method}(...array_values($parameters));
}
/**
* Get the middleware for the controller instance.
*
* @param \Illuminate\Routing\Controller $controller
* @param string $method
* @return array
*/
public function getMiddleware($controller, $method)
{
if (! method_exists($controller, 'getMiddleware')) {
return [];
}
return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
return static::methodExcludedByOptions($method, $data['options']);
Arguments
"department"
array:3 [
0 => Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"mod" => "2"
"faculty" => "28"
]
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php
protected function runCallable()
{
$callable = $this->action['uses'];
return $callable(...array_values($this->resolveMethodDependencies(
$this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
)));
}
/**
* Run the route action and return the response.
*
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function runController()
{
return $this->controllerDispatcher()->dispatch(
$this, $this->getController(), $this->getControllerMethod()
);
}
/**
* Get the controller instance for the route.
*
* @return mixed
*/
public function getController()
{
if (! $this->controller) {
$class = $this->parseControllerCallback()[0];
$this->controller = $this->container->make(ltrim($class, '\\'));
}
return $this->controller;
}
/**
Arguments
Illuminate\Routing\Route {#175}
App\Http\Controllers\LessonsController {#229}
"department"
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php
*
* @throws \UnexpectedValueException
*/
protected function parseAction($action)
{
return RouteAction::parse($this->uri, $action);
}
/**
* Run the route action and return the response.
*
* @return mixed
*/
public function run()
{
$this->container = $this->container ?: new Container;
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
/**
* Checks whether the route's action is a controller.
*
* @return bool
*/
protected function isControllerAction()
{
return is_string($this->action['uses']);
}
/**
* Run the route action and return the response.
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/app/Http/Middleware/Localization.php
use Closure;
class Localization
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(\Session::has('locale')){
\App::setlocale(\Session::get('locale'));
}else{
\App::setlocale('tr');
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#240 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
*/
public function __construct(Registrar $router)
{
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->router->substituteBindings($route = $request->route());
$this->router->substituteImplicitBindings($route);
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#254 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Session\TokenMismatchException
*/
public function handle($request, Closure $next)
{
if (
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
throw new TokenMismatchException('CSRF token mismatch.');
}
/**
* Determine if the HTTP request uses a ‘read’ verb.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function isReading($request)
{
return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#255 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the current session has an "errors" variable bound to it, we will share
// its value with all view instances so the views can easily access errors
// without having to bind. An empty bag is set when there aren't errors.
$this->view->share(
'errors', $request->session()->get('errors') ?: new ViewErrorBag
);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#256 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (! $this->sessionConfigured()) {
return $next($request);
}
// If a session driver has been configured, we will need to start the session here
// so that the data is ready for an application. Note that the Laravel sessions
// do not make use of PHP "native" sessions in any way since they are crappy.
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
$this->saveSession($request);
return $response;
}
/**
* Start the session for the given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Contracts\Session\Session
*/
protected function startSession(Request $request)
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#257 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
* Create a new CookieQueue instance.
*
* @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies
* @return void
*/
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#258 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
* Disable encryption for the given cookie name(s).
*
* @param string|array $name
* @return void
*/
public function disableFor($name)
{
$this->except = array_merge($this->except, (array) $name);
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Symfony\Component\HttpFoundation\Request
*/
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $cookie) {
if ($this->isDisabled($key)) {
continue;
}
try {
$request->cookies->set($key, $this->decryptCookie($key, $cookie));
} catch (DecryptException $e) {
$request->cookies->set($key, null);
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#259 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
* Sort the given middleware by priority.
*
Arguments
Closure($request) {#239 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
return $route;
}
/**
* Return the response for the given route.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Routing\Route $route
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
Arguments
Illuminate\Routing\Route {#175}
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$this->container->instance(Route::class, $route);
return $route;
}
/**
* Return the response for the given route.
*
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Illuminate\Routing\Route {#175}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function respondWithRoute($name)
{
$route = tap($this->routes->getByName($name))->bind($this->currentRequest);
return $this->runRoute($this->currentRequest, $route);
}
/**
* Dispatch the request to the application.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
}
/**
* Call the terminate method on any terminable middleware.
*
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/fideloper/proxy/src/TrustProxies.php
{
$this->config = $config;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
* @param \Illuminate\Http\Request $request
*/
protected function setTrustedProxyIpAddresses(Request $request)
{
$trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
// Trust any IP address that calls us
// `**` for backwards compatibility, but is deprecated
if ($trustedIps === '*' || $trustedIps === '**') {
return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
}
// Support IPs addresses separated by comma
$trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#209 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
namespace Illuminate\Foundation\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformsRequest
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#210 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
namespace Illuminate\Foundation\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformsRequest
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#211 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Http\Exceptions\PostTooLargeException
*/
public function handle($request, Closure $next)
{
$max = $this->getPostMaxSize();
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
}
return $next($request);
}
/**
* Determine the server 'post_max_size' as bytes.
*
* @return int
*/
protected function getPostMaxSize()
{
if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
return (int) $postMaxSize;
}
$metric = strtoupper(substr($postMaxSize, -1));
$postMaxSize = (int) $postMaxSize;
switch ($metric) {
case 'K':
return $postMaxSize * 1024;
case 'M':
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#212 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
$data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
return $next($request);
}
if ($this->inExceptArray($request)) {
return $next($request);
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function inExceptArray($request)
{
foreach ($this->except as $except) {
if ($except !== '/') {
$except = trim($except, '/');
}
if ($request->fullUrlIs($except) || $request->is($except)) {
return true;
}
}
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#213 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
Arguments
Closure($request) {#45 …4}
/home/avys/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->aliasMiddleware($key, $middleware);
}
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new Events\RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/avys/public_html/public/index.php
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Arguments
Illuminate\Http\Request {#44
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#230 …4}
#routeResolver: Closure() {#232 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\ParameterBag {#52}
+query: Symfony\Component\HttpFoundation\ParameterBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/lessons/2/28"
#requestUri: "/lessons/2/28"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#271}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}