forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaravel-framework.json
More file actions
247 lines (246 loc) · 13.1 KB
/
Copy pathlaravel-framework.json
File metadata and controls
247 lines (246 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
{
"id": "laravel-framework",
"title": "লারাভেল পিএইচপি ফ্রেমওয়ার্কিং",
"slug": "laravel-framework",
"description": "লারাভেল একটি ওপেন সোর্স পিএইচপি ফ্রেমওয়ার্ক। ২০১১ সালে টেইলর অটওয়েল প্রথম লারাভেল ডেভেলপ করেন। সাধারণ ব্লগ, কনটেন্ট ম্যানেজমেন্ট সিস্টেম, ইকমার্স সাইট, বড় ধরনের ওয়েব এপ্লিকেশন, কিংবা মোবাইল এপ্লিকেশনের জন্য JSON নির্ভর এপ্লিকেশন সহ সব কিছুই এখন লারাভেল ব্যবহার করে ডেভেলপ করা সম্ভব।",
"colorPref": "#3A241D",
"contents": [
{
"title": "আরটিসান কমান্ড",
"items": [
{
"definition": "প্রোজেক্ট স্টার্ট করার জন্য",
"code": "php artisan serve"
}, {
"definition": "রাউট কে ক্যাশে নেয়া",
"code": "php artisan route:cache"
}, {
"definition": "ক্যাশ থেকে রাউট মুছে ফেলা",
"code": "php artisan route:clear"
}, {
"definition": "লারাভেলের সকল আরটিসান কমান্ড লিস্ট",
"code": "php artisan list"
}, {
"definition": "কনফিগারেশন ক্যাশে নেয়া",
"code": "php artisan config:cache"
}, {
"definition": "ক্যাশ থেকে কনফিগারেশন মুছে ফেলা",
"code": "php artisan config:clear"
}, {
"definition": "প্রোজেক্ট টি মেইনটেইনেন্স মোডে নেয়ার জন্য",
"code": "php artisan down"
}, {
"definition": "প্রোজেক্ট টি লাইভে নিয়ে আসা",
"code": "php artisan up"
}, {
"definition": "মিডেল ওয়ার ক্রিয়েট করা",
"code": "php artisan make:middleware <middleware-name>"
}, {
"definition": "কনট্রোলার ক্রিয়েট করা",
"code": "php artisan make:controller <controller-name>"
},{
"definition": "রিকোয়েস্ট ফরম ক্রিয়েট করা",
"code": "php artisan make:request <request-name>"
},{
"definition": "একটি নির্ধারিত নেমস্পেস ক্রিয়েট করা",
"code": "php artisan app:name devsonket"
}, {
"definition": "লারাভেলে এইচটিএমএল প্যাকেজ যুক্ত করা",
"code": "php artisan composer require illuminate/html"
}, {
"definition": "লারাভেলে ইভেন্ট জেনারেট করা",
"code": "php artisan event:generate"
}, {
"definition": "সার্ভিস প্রভাইডার ক্রিয়েট করা",
"code": "php artisan make:provider <provider-name>"
}, {
"definition": "লারাভেলর ডিফল্ট অথ ব্যবহার করা",
"code": "php artisan make:auth"
}, {
"definition": "নিজস্ব কমান্ড লাইন তৈরি করা",
"code": "php artisan make:console <name-of-command>"
}, {
"definition": "কি জেনারেট",
"code": "php artisan key:generate"
}, {
"definition": "ক্যাশের সকল ডাটা মুছে ফেলা",
"code": "php artisan cache:clear"
}, {
"definition": "মাইগ্রেশন ক্রিয়েট করা",
"code": "php artisan make:migration create_devsonket_table --create=devsonket"
}, {
"definition": "ডাটাবেসে টেবিল মাইগ্রেট করা",
"code": "php artisan migrate"
}, {
"definition": "ডাটাবেসের পূর্বের অবস্থানে ফিরে যাওয়া অথবা রোল ব্যাক করা",
"code": "php artisan migrate:rollback"
}, {
"definition": "মাইগ্রেশন ব্যবহার করে সকল টেবিল মুছে ফেলা",
"code": "php artisan migrate:reset"
}, {
"definition": "ডাটাবেসের পূর্বের অবস্থানে ফিরে যাওয়া এবং মাইগ্রেট করা",
"code": "php artisan migrate:refresh"
}, {
"definition": "একবারে সকল টেবিল মুছে ফেলার পরে, নতুন করে টেবিল তৈরি করতে চাইলে",
"code": "php artisan migrate:fresh"
}
]
},
{
"title": "ডাটাবেস কলাম মেথড",
"items": [
{
"definition": "অটো ইনক্রিমেন্টের জন্য",
"code": "$table->increments('id');"
}, {
"definition": "বড় ইনক্রিমেন্টের জন্য",
"code": "$table->bigIncrements('id');"
}, {
"definition": "বড় ইনটেজার টাইপের ডাটার জন্য",
"code": "$table->bigInteger('votes');"
}, {
"definition": "বুলিয়ান টাইপের ডাটার জন্য",
"code": "$table->boolean('confirmed');"
}, {
"definition": "ক্যারেক্টার টাইপের ডাটা এবং সাথে অপসোনাল দৈর্ঘ্য",
"code": "$table->char('name', 100);"
}, {
"definition": "তারিখ এর জন্য",
"code": "$table->date('created_at');"
}, {
"definition": "তারিখ এবং টাইমের জন্য",
"code": "$table->dateTime('created_at');"
}, {
"definition": "তারিখ,টাইম এবং সাথে টাইম জোনের জন্য",
"code": "$table->dateTimeTz('created_at');"
}, {
"definition": "ডেসিমেল সংখ্যার জন্য, সাথে টোটাল সংখ্যা,স্কেল ও ডেসিমেল ডিজিট",
"code": "$table->decimal('amount', 8, 2);"
}, {
"definition": "ডাবোল টাইপের ডাটার জন্য, সাথে টোটাল সংখ্যা,স্কেল ও ডেসিমেল ডিজিট",
"code": "$table->double('amount', 8, 2);"
}, {
"definition": "জ্যামিতির জন্য",
"code": "$table->geometry('positions');"
}, {
"definition": "ইনটেজার টাইপের ডাটার জন্য",
"code": "$table->integer('votes');"
}, {
"definition": "আইপি এড্রেস এর জন্য",
"code": "$table->ipAddress('visitor');"
}, {
"definition": "ম্যাক এড্রেস এর জন্য",
"code": "$table->macAddress('device');"
}, {
"definition": "জেসন ডাটা ফরমেটের জন্য",
"code": "$table->json('options');"
}, {
"definition": "লম্বা অথবা বড় কোন লেখার জন্য",
"code": "$table->longText('description');"
}, {
"definition": "মাঝারি পূর্ণ সংখ্যার জন্য",
"code": "$table->mediumInteger('votes');"
}
]
},
{
"title": "ব্লেড টেমপ্লেট",
"items": [
{
"definition": "যেকোনো value প্রদর্শন করতে ব্যবহৃত হয়",
"code": "@yield"
}, {
"definition": "টেমপ্লেটের যেকোনো section define করতে ব্যবহৃত হয়",
"code": "@section"
}, {
"definition": "define করা section end করতে ব্যবহৃত হয়",
"code": "@endsection"
}, {
"definition": "এক view file কে অন্য view file এ include করার জন্য",
"code": "@include"
}, {
"definition": "Master Layout কে Child Layout এ extends বা inherit করার জন্য",
"code": "@extends"
}, {
"definition": "লারাভেল ব্লেড টেমপ্লেটে Comments করা",
"code": "{{-- devsonket --}}"
}, {
"definition": "ব্লেড টেমপ্লেটের মধ্যে পিএইচপি ব্লক লেখার জন্য",
"code": "@php"
}, {
"definition": "পিএইচপি ব্লক টি end করার জন্য",
"code": "@endphp"
}, {
"definition": "css file, js file এবং যেকোনো image link করার জন্য",
"code": "{{ asset('your_asset_file_path') }}"
}, {
"definition": "বিভিন্ন page এর সাথে লিংক করার জন্য",
"code": "{{URL::to('/your_page_link')}}"
}
]
},
{
"title": "রাউটিং",
"items": [
{
"definition": "বেসিক রাউটিং-১",
"code": "Route::get('foo', function(){});"
}, {
"definition": "বেসিক রাউটিং-২",
"code": "Route::get('foo', 'ControllerName@function');"
}, {
"definition": "বেসিক রাউটিং-৩",
"code": "Route::controller('foo', 'FooController');"
}, {
"definition": "রেস্টফুল কন্ট্রোলার-১",
"code": "Route::resource('posts','PostsController');"
}, {
"definition": "রেস্টফুল কন্ট্রোলার-২",
"code": "Route::resource('photo', 'PhotoController',['only' => ['index', 'show']]);"
}, {
"definition": "রেস্টফুল কন্ট্রোলার-৩",
"code": "Route::resource('photo', 'PhotoController',['except' => ['update', 'destroy']]);"
},{
"definition": "ট্রিগারিং এররস-১",
"code": "App::abort(404);"
},{
"definition": "ট্রিগারিং এররস-২",
"code": "App::missing(function($exception){});"
},{
"definition": "ট্রিগারিং এররস-৩",
"code": "throw new NotFoundHttpException;"
},{
"definition": "রাউট প্যারামিটার-১",
"code": "Route::get('foo/{bar}', function($bar){});"
}, {
"definition": "রাউট প্যারামিটার-২",
"code": "Route::get('foo/{bar?}', function($bar = 'bar'){})"
},{
"definition": "http verbs:any",
"code": "Route::any('foo', function(){});"
}, {
"definition": "http verbs:post",
"code": "Route::post('foo', function(){});"
},{
"definition": "http verbs:put",
"code": "Route::put('foo', function(){});"
},{
"definition": "http verbs:patch",
"code": "Route::patch('foo', function(){});"
},{
"definition": "http verbs:delete",
"code": "Route::delete('foo', function(){});"
},{
"definition": "রেস্টফুল একশন্স",
"code": "Route::resource('foo', 'FooController');"
}, {
"definition": "সিকিউর রাউট",
"code": "Route::get('foo', array('https', function(){}));"
}, {
"definition": "রাউট কন্সট্রেইন্টস",
"code": "Route::get('foo/{bar}', function($bar){})"
}
]
}
]
}