The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.

Книга представляет собой полное описание фреймворка Laravel 8 для быстрой разработки сайтов на языке PHP. Дан краткий вводный курс для начинающих, в котором описывается разработка простого учебного сайта — электронной доски объявлений. Раскрыты основы программирования сайтов на Laravel. Приведено наиболее полное описание инструментов Laravel: моделей, контроллеров, шаблонов, средств обработки пользовательского ввода, включая валидаторы, сохранения выгруженных файлов, разграничения доступа, обработки событий, отправки электронной почты и оповещений и пр. Рассказано об использовании очередей и отложенных заданий. Рассмотрены встроенный планировщик, инструменты кэширования, журналирования и локализации сайтов, утилита artisan. Описаны дополнительные библиотеки для обработки BBCode-тегов и CAPTCHA, вывода графических миниатюр, аутентификации через социальные сети (в частности, «ВКонтакте»). Рассмотрено программирование веб-служб REST, реализация вещания по протоколу WebSocket и публикация сайта.

Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by BHV.RU Publishing House, 2021-04-14 00:39:50

Laravel 8. Быстрая разработка веб-сайтов на PHP

Книга представляет собой полное описание фреймворка Laravel 8 для быстрой разработки сайтов на языке PHP. Дан краткий вводный курс для начинающих, в котором описывается разработка простого учебного сайта — электронной доски объявлений. Раскрыты основы программирования сайтов на Laravel. Приведено наиболее полное описание инструментов Laravel: моделей, контроллеров, шаблонов, средств обработки пользовательского ввода, включая валидаторы, сохранения выгруженных файлов, разграничения доступа, обработки событий, отправки электронной почты и оповещений и пр. Рассказано об использовании очередей и отложенных заданий. Рассмотрены встроенный планировщик, инструменты кэширования, журналирования и локализации сайтов, утилита artisan. Описаны дополнительные библиотеки для обработки BBCode-тегов и CAPTCHA, вывода графических миниатюр, аутентификации через социальные сети (в частности, «ВКонтакте»). Рассмотрено программирование веб-служб REST, реализация вещания по протоколу WebSocket и публикация сайта.

Keywords: Laravel

Предметный указатель

@ @error 262 A
@extends 263
@auth 300 @for 257 abort() 225
@break 256, 257 @foreach 256 abort_if() 225
@can 311 @forelse 257 abort_unless() 226
@canany 311 @guest 300 accessible() 336
@cannot 312 @hasSection 265 action() 217, 224, 511, 520
@case 256 @if 254 add() 232, 331, 344, 585
@continue 257 @include 266 addGlobalScope() 387, 388
@csrf 259 @includeFirst 267 addHttpCookie 448
@default 256 @includeIf 267 additional() 604
@each 267 @includeUnless 267 addLinebreakParser() 402
@else 254–256, 265, 300 @includeWhen 267 addParser() 404
@elsecan 311 @isset 255 AddQueuedCookiesToResponse
@elsecanany 311 @json() 254
@elsecannot 312 @lang 573 470, 549
@elseif 254 @method 260 addSelect() 172
@empty 255, 257 @parent 264 advance() 646
@endauth 300 @php 258 after() 107, 232, 305, 326, 544, 568
@endcan 311 @prepend 265 afterLast() 326
@endcanany 311 @production 256 afterResolving() 461
@endcannot 312 @props 274 afterResponse() 537
@endempty 255 @push 265 ajax() 212
@endenv 255 @section 263 alert() 644, 660
@enderror 262 @show 264 alias() 457
@endfor 257 @stack 265 all() 156, 210, 246, 363, 554
@endforeach 256 @switch 256 allDirectories() 433
@endforelse 257 @unless 254 allFiles() 432
@endguest 300 @verbatim 259 allow() 305
@endif 254, 265 @while 257 allowed() 306
@endisset 255 @yield 262 allows() 302
@endphp 258 always() 107
@endprepend 265 _ alwaysFrom() 506
@endproduction 256 alwaysReplyTo() 506
@endpush 265 __() 573, 575 alwaysTo() 507
@endsection 263 __invoke() 206 any() 187, 303
@endswitch 256 anyFilled() 211
@endunless 254 apiResource() 199
@endverbatim 259 apiResources() 199
@endwhile 257 API-маршрут 33
@env 255 app 455
App 95, 579
app() 455, 462

678 Предметный указатель

app_path() 339 BBCodeServiceProvider 401 CanResetPassword 318
append() 321, 431, 598 bcc() 506 cant() 310
appendOutputTo() 567 bcrypt() 558 Captcha 405
appends 597 before() 304, 326, 544, 568 CAPTCHA 405
appends() 282 beforeLast() 326 Captcha for Laravel 405
Application 649 beginTransaction() 393 captcha_img() 407
AppServiceProvider 466 belongsTo() 125 captcha_src() 408
argument() 642 belongsToMany() 128 CaptchaServiceProvider 405
arguments() 642 between() 326, 565 Carbon 123
Arr 331 bigIncrements() 104 cascadeOnDelete() 110
artisan 29, 649 bigInteger() 102 casts 124
Artisan 647 binary() 104 catch() 537, 540
ArtisanStarting 649 BinaryFileResponse 219 cc() 506
as() 131 bind() 456, 458 chain() 538
ascii() 324 bindIf() 457 change() 111
ask() 643 bindings 459 channel 525
asset() 278 bindMethod() 463 Channel 625
associate() 144 bing() 193 channel() 626, 631, 660
at() 563 bkwld/croppa 433 Channel() 625
attach() 146, 499 Blade 253, 267, 408 char() 101
attachData() 500 blank() 339 charset() 106
attachFromStorage() 500 block() 589 check() 303, 314, 558
attachFromStorageDisk() 500 Blueprint 101 checkbox() 395
attachment() 518 boolean() 104, 209 choice() 643
attempt() 439 boot() 466 chunk() 351, 375
Attempting 484 booted() 490 chunkById() 376
attempts() 535 bound() 457 class_basename() 341
attributes 122, 136, 271 Broadcast 626 class_uses_recursive() 342
attributesToArray() 595 broadcast() 623 close() 399
Auth 291, 296, 313, 439 broadcastAs() 622 cloud() 427
auth() 314 BroadcastMessage 623 code() 306
auth:clear-resets 319 broadcastQueue 622 collapse() 337, 364
Authenticate 299, 471 broadcastQueue() 622 collation 110
Authenticated 484 BroadcastServiceProvider 464, 466 collation() 107
authenticated() 298 broadcastType() 625 collect 606
AuthenticateSession 452, 470 broadcastWhen() 622 collect() 343
AuthenticatesUsers 297 broadcastWith() 622 Collection 343
AuthenticateWithBasicAuth 471 Builder 101 collection() 604
author() 519 BusServiceProvider 465 color() 395, 520
AuthorizationException 303 button() 397 ColumnDefinition 105
Authorize 471 by() 451 combine() 344
authorize() 235, 303, 306, 310, 313 command 649
authorizeResource() 312 C Command 638
AuthorizesRequests 204, 310, 312 command() 562, 647
AuthServiceProvider 464, 466 Cache 584 CommandFinished 649
autoincrement() 106 cache() 584, 585 commands 647
average() 179, 362 cache:clear 587 commands() 646
avg() 179, 362 cache:forget 587 CommandStarting 649
away() 224 cache:table 583 comment() 107, 645
CacheEvent 591 commit() 393
B CacheHit 592 component 273
CacheMissed 592 Component 269
back() 223 CacheServiceProvider 465 compose() 276
backoff 533 call() 119, 462, 561, 646, 648 Composer 27
backoff() 533 callSilent() 646 composer() 276
base_path() 339 camel() 325 concat() 344
basename() 330 can() 309 config() 94, 95
BBCode 401, 402 cannot() 310 config:cache 667

Предметный указатель DatabaseNotification 524 679
DatabaseServiceProvider 465
config:clear 667 datalist() 397 dispatchesEvents 491
config_path() 339 date() 104, 395 DispatchesJobs 204
configureRateLimiting() 450 dateFormat 123 dispatchIf() 488, 536
confirm() 643 dates 124 dispatchNow() 536
ConfirmPasswords 314 datetime() 395 dispatchUnless() 488
connection 123, 539 dateTime() 103 dissociate() 145
connection() 114, 152 datetimeLocal() 395 distinct() 166
connectionName 543 dateTimeTz() 103 divide() 337
ConsoleSupportServiceProvider days() 565 doesntExist() 167
DB 152, 389 doesntExistOr() 167
465 db:seed 119 doesntHave() 170
constrained() 108 db:wipe 116 domain() 196
Container 455 dd() 661, 662 dontFlash 233
contains() 327, 351 debug() 660 dontReport 653
containsAll() 327 decayMinutes 298 dot() 337
containsStrict() 352 decimal() 103 double() 103
content() 516–518 decrement() 141, 151, 554, 585 down 670
context 660 decrypt() 557 down() 101
Controller 204 decryptString() 557 download() 220, 429
ConvertEmptyStringsToNull 250, default() 106 drive() 427
defaults() 194 driver() 445
470 defaultSimpleView() 284 drop() 113
convertToHtml() 402 defaultStringLength 101 dropColumn() 111
Cookie 547, 549 defaultView() 283 dropForeign() 112
◊ сессии 551 DeferrableProvider 467 dropIfExists() 113
cookie() 548–550 define() 301 dropIndex() 112
CookieServiceProvider 465 delay 539 dropMorphs() 378
copy() 414, 431 delay() 537 dropRememberToken() 112
copyDirectory() 415 delete() 135, 143, 151, 186, 391, dropSoftDeletes() 112
CORS 469 dropSoftDeletesTz() 112
count 258 429, 438, 535, 586 dropTimestamps() 111
count() 179, 285, 363 deleteDirectory() 433 dropTimestampsTz() 111
countBy() 363 deleteFileAfterSend() 220 dump() 662
create() 101, 138, 145, 148, 277, deleteWhenMissingModels 534 duplicates() 350
denied() 306 duplicatesStrict() 350
295 denies() 303
CREATED_AT 123 deny() 305 E
createMany() 145, 148 depth 258
createProgressBar() 645 describe() 647 each() 353, 376
creator() 277 description() 566, 567 eachById() 376
credentials 484, 485 destroy() 143 eachSpread() 353
critical() 660 diff() 349 Echo 630
croppa:purge 438 diffAssoc() 349 email() 395
crossJoin() 175, 338, 366 diffKeys() 349 emailOutputOnFailure() 568
Crypt 556 dimensions() 424 emailOutputTo() 567
CSRF 448 directive() 408 emailWrittenOutputTo() 568
csrf_token() 448 directories() 432 embed() 501
current() 217 dirname() 330 embedData() 501
CurrentDeviceLogout 484 disableForeignKeyConstraints() emergency() 660
currentPage() 284 enableForeignKeyConstraints() 113
cursor() 377 113 encrypt() 556, 557
disableNotifications() 416 EncryptCookies 470, 548
D disableSuccessNotifications() 416 EncryptionServiceProvider 465
discoverEventsWithin() 481 encryptString() 557
daily() 563 disk() 427 endsWith() 328
dailyAt() 563 dispatch() 487–489, 536, 537, 538 engine 110
data 507, 525 Dispatchable 486, 488, 531 EnsureEmailIsVerified 471
data_fill() 332 dispatchAfterResponse() 536 enum() 104
data_get() 335
data_set() 332
database_path() 339

680 files() 432 Предметный указатель
Filesystem 426
env() 89 FilesystemServiceProvider 465 getAcceptableContentTypes() 214
environment() 95 fill() 140 getAlias() 458
environments() 566 fillable 122 getAvatar() 446
error() 512, 518, 644, 660 filled() 211, 340 getCharsets() 215
errors() 246 filter() 357 getClientMimeType() 425
even 258 find() 157 getClientOriginalName() 425
evenInMaintetanceMode() 567 findMany() 157 getEmail() 446
Event 479, 481 findOrFail() 157 getEncodings() 215
event() 487, 489 findOrNew() 157 getHost() 213
event:cache 667 finish() 321, 646 getHttpHost() 213
event:clear 668 first 258 getId() 446
event:generate 487 first() 107, 156, 218, 246, 334, 354 getLanguages() 215
EventServiceProvider 466 firstItem() 285 getLocale() 579
every() 353 firstOr() 156 getMaxFilesize() 425
everyFifteenMinutes() 563 firstOrCreate() 139 getName() 446
everyFiveMinutes() 563 firstOrFail() 156 getNickname() 446
everyFourHours() 563 firstOrNew() 139 getPageName() 285
everyFourMinutes() 563 firstWhere() 157, 355 getPort() 213
everyMinute() 563 flash() 556 getPreferredFormat() 214
everySixHours() 563 flatMap() 365 getPreferredLanguage() 215
everyTenMinutes() 563 flatten() 364 getProtocolVersion() 215
everyThirtyMinutes() 563 flatten() 337 getRouteKey() 216
everyThreeHours() 563 flip() 367 getRouteKeyName() 191
everyThreeMinutes() 563 float() 102 getScheme() 213
everyTwoHours() 563 flush() 555, 586 getSchemeAndHttpHost() 213
everyTwoMinutes() 563 footer() 519 getSwiftMailer() 508
exactly() 322 for() 450 getUrlRange() 285
except 250, 448, 548, 671 forceDelete() 144 getVisibility() 432
except() 200, 207, 210, 332, 347, forceRelease() 591 give() 460
foreign() 109 greeting() 511
403 foreignId() 108 group() 196
exceptInput() 233 forever() 549, 584 groupBy() 180, 360
exception 543 forget() 332, 345, 480, 550, 555, groupByRaw() 390
exceptionOccured() 544 guard 484, 485
exec() 562 586 guard() 296, 298, 319
exists() 167, 211, 219, 243, 335, Form 394 guarded 122
FormRequest 235
431, 554 forPage() 351 H
existsOr() 167 forUser() 304
exit 41 FoundationServiceProvider 465 handle() 473, 478
exitCode 649 fragment() 282 HandleCors 469
expectsJson() 212 fresh() 183 Handler 233, 653, 654
explode() 326 fridays() 565 HandlesAuthorization 307
Expression 106 from() 176, 499, 516, 518 has() 169, 211, 246, 304, 335, 351,
extend() 248, 462 full() 217
extendImplicit() 248 fullUrl() 213 457, 550, 554, 586
extension() 425 fullUrlIs() 213 hasAny() 211, 247, 336
extract() 414 hasArgument() 642
G hasColumn() 113
F hasCookie() 550
Gate 301 hasCorrectSignature() 559
Factory 218, 231 generatedAs() 107 hasFile() 425
fail() 535 genertorg/bbcode 401 Hash 558
Failed 485 geometry() 105 HashServiceProvider 465
failing() 544 geometryCollection() 105 hasListeners() 480
fails() 232 get() 156, 167, 186, 215, 246, 333, hasMany() 125
fallback() 188, 519 hasManyThrough() 133
field() 519 346, 431, 550, 554, 585, 588 hasMethodBindings() 464
fields() 519 hasMorePages() 284
file() 219, 395, 425

Предметный указатель invalidate() 555 681
ip() 214
hasOne() 127 ipAddress() 104 Laravel Echo 629
hasOneThrough() 133 ips() 214 Laravel HTML 394
hasOption() 643 is() 182, 212, 322 Laravel Mix 410
hasPages() 284 isAlias() 458 Laravel Socialite 442
hasQueued() 550 isAscii() 322 laravel-echo-server 617
hasTable() 113 isAssoc() 336 Laravel-lang 580
hasValidSingature() 560 isClean() 142 last 258
hasWildcardListeners() 489 isDirty() 141 last() 334, 335, 355
having() 180 isEmpty() 322, 363 lastDayOfMonth() 564
havingRaw() 390 isLocale() 579 lastItem() 285
head() 335 isMethod() 212 lastModified() 431
header() 222 isMethodSafe() 212 lastPage() 284
headers 215, 665 isNotEmpty() 322, 363 later() 541
height() 424 isShared() 458 latest() 165
help 638 isUuid() 323 LazyCollection 368
here() 634 isValid() 425 leave() 632
hidden 596 items() 285 leaveChannel() 632
hidden() 395 iteration 258 leaving() 634
HOME 184 leftJoin() 175
home() 225 J leftJoinSub() 178
hosts() 666 length() 322
hourly() 563 job 543 LengthAwarePaginator 280, 285
hourlyAt() 563 job() 562 less() 412
html() 499 JobExceptionOccurred 543 level 660
HTTP-метод JobFailed 543 level() 512
◊ допустимый 33 JobProcessed 543 Limit 450
JobProcessing 543 limit() 165, 323
I join() 173, 364, 633 line() 511, 644
joining() 634 lineString() 105
ICMP 568 joinSub() 178 link_to() 400
id() 104, 314 js() 413 link_to_action() 401
if() 409 json() 104, 220 link_to_asset() 401
image() 397, 518, 519 jsonb() 104 link_to_route() 400
img() 408 jsonp() 221 links() 281, 283
ImplicitRule 249 JsonResource 598 list 637
implode() 364 JsonResponse 221 listen 479
in() 240 jsonSerialize() 595 listen() 479, 481, 482, 488, 631
include() 267 JSON-объект 593 listenForWhisper() 635
increment() 141, 151, 553, 585 load() 374
incrementing 123 K loadCount() 181
increments() 104 loadMissing() 374
index 258 kebab() 325 loads() 647
index() 107 keep() 556 lock() 587, 588
info() 518, 644, 660 Kernel 184, 469, 472, 561, 646 lockForUpdate() 392
input() 209 key 591 Lockout 485
inRandomOrder() 165 keyBy() 364 LockTimeoutException 589
insert() 150, 391 KeyForgotten 592 Log 659
insertGetId() 151 keys() 347 log() 659
insertOrIgnore() 150 keyType 123 loggedOut() 315
inspect() 306 KeyWritten 591 logger() 660
instance() 457 Login 484
integer() 102 L login() 441
intended() 440 loginUsingId() 441
InteractsWithQueue 532 label() 394 Logout 484
InteractsWithSockets 486 laravel 27 logout() 441
intersect() 349 logoutCurrentDevice() 441
intersectByKeys() 349 logoutOtherDevices() 452
InvalidArgumentException 219 longText() 102

682 maxHeight() 424 Предметный указатель
maxWidth() 424
loop 258 median() 363 N
Looping 543 mediumIncrements() 104
looping() 544 mediumInteger() 102 name() 188, 197, 566, 567
lower() 323 mediumText() 102 names() 200
ltrim() 324 merge() 235, 272, 345 namespace 184
mergeRecursive() 345 namespace() 197
M mergeWhen() 600 needs() 460, 461
message 507, 660 needsRehash() 558
macAddress() 105 message() 306 NexmoMessage 515
Mail 505 MessageBag 246 nextPageUrl() 285
mail:button 503 MessageLogged 660 noContent() 222
mail:message 502 messages() 235, 508 none() 303, 451
mail:panel 503 MessageSending 507 notice() 660
mail:table 503 MessageSent 507 notifiable 525
Mailable 497 method() 212 Notifiable 523, 524
mailer() 506, 512 method_field() 260 notification 525
MailMessage 511 middleware 184 Notification 509, 522
MailServiceProvider 465 middleware() 195, 207 notification() 632
make() 218, 231, 245, 295, 343, middlewareGroups 185 NotificationFailed 525
middlewarePriority 472 notifications:table 521
368, 455, 549, 558 migrate 114, 117 NotificationSending 525
make:channel 627 migrate:fresh 116 NotificationSent 525
make:command 638 migrate:install 116 NotificationServiceProvider 465
make:component 268 migrate:refresh 115 notify() 523
make:controller 206 migrate:reset 115 notifyNow() 543
make:event 486 migrate:rollback 115 notIn() 240
make:exception 651 migrate:status 116 now() 339
make:job 531, 535 Migration 100 nth() 347
make:listener 477 mimeType() 431 nullable() 106
make:mail 497 min() 179, 362 nullableMorphs() 377
make:middleware 473 minHeight() 424 nullableTimestamps() 103
make:migration 100 minWidth() 424 nullableUuidMorphs() 377
make:model 120 missing() 211, 431, 586 number() 395
make:notification 509 mix() 415
make:observer 491 mode() 363 O
make:policy 307 Model 121
make:provider 466 model() 192, 399 observe() 492
make:resource 598, 605 ModelNotFoundException 156, odd 258
make:rule 249 of() 320
makeDirectory() 433 191, 534 offset() 165
makeHidden() 597 mondays() 564 old() 246
makeVisible() 597 month() 395 oldest() 165
makeWith() 455 monthly() 564 on() 109, 175
many() 586 monthlyOn() 564 once() 441
map() 365 morphedByMany() 381 onConnection() 536
mapInto() 366 morphMany() 378 onDelete() 110
mapSpread() 365 morphMap() 385 onEachSize() 282
mapToGroups() 361 morphOne() 380 onFailure() 568
mapWithKeys() 365 morphs() 377 onFirstPage() 284
markAsRead() 525 morphTo() 379 only() 200, 207, 210, 334, 402, 554
markAsUnread() 525 morphToMany() 381 onlyInput() 233
Markdown 502 move() 432 onlyTrashed() 182
markdown() 502, 513, 520 multiLineString() 105 onOneServer() 566
markEmailAsVerified() 446 multiPoint() 105 onQueue() 536
match() 187, 328 multiPolygon() 105 onSuccess() 568
matchAll() 328 MustVerifyEmail 317 onUpdate() 110
max() 179, 362 open() 398
maxAttempts 298
maxExceptions 534

Предметный указатель 683

option() 642 perDay() 450 queue() 541, 549, 648
optional() 341 perHour() 450 queue:failed 546
options() 186, 413, 642 permanentRedirect() 188 queue:failed-table 531
orderBy() 164 perMinute() 450 queue:flush 546
orderByDesc() 165 perPage() 285 queue:forget 546
orderByRaw() 390 pingBefore() 569 queue:listen 544
orderedUuid() 330 pingBeforeIf() 569 queue:restart 546
orDoesntHave() 171 pingOnFailure() 569 queue:retry 546
orHas() 170 pingOnSuccess() 569 queue:table 530
orHaving() 180 pipe() 363 queue:work 545
orHavingRaw() 390 PipelineServiceProvider 465 Queueable 497, 509, 531
orOn() 175 pivot 155 queueable() 540
orWhere 387 Pivot 131 QueueServiceProvider 465
orWhere() 159 pjax() 212
orWhereBetween() 162 pluck() 183, 334, 347 R
orWhereColumn() 160 plural() 325
orWhereDate() 160 point() 105 radio() 396
orWhereDay() 160 policies 308 random() 330, 338, 348
orWhereDoesntHave() 171 polygon() 105 range() 395
orWhereDoesntHaveMorph() 384 pop() 344 RateLimiter 450
orWhereExists() 177 post() 186 ratio() 424
orWhereHas() 171 postCss() 412 raw() 173, 389
orWhereHasMorph() 384 prefetch() 212 rawIndex() 108
orWhereIn() 162 prefix() 196 react() 414
orWhereJsonContains() 164 preg_replace_array() 330 read() 525
orWhereJsonDoesntContain() 164 prepareForValidation() 235 readNotifications() 524
orWhereJsonLength() 164 prepend() 321, 331, 431 receivesBroadcastNotificationsOn()
orWhereMonth() 161 PresenceChannel 629
orWhereNotBetween() 162 preserveQuery() 607 624
orWhereNotExists() 177 pretext() 519 Redirect 223
orWhereNotIn() 162 PreventRequestsDuringMaintenance redirect() 187, 223, 446
orWhereNotNull() 163 RedirectIfAuthenticated 300, 471
orWhereNull() 163 469, 671 Redirector 223
orWhereRaw() 390 previous() 217 RedirectResponse 223, 440
orWhereTime() 161 previousPageUrl() 284 redirectTo 295, 298, 315, 317, 319
orWhereYear() 161 primary() 108 redirectTo() 296, 298, 315, 317,
OtherDeviceLogout 485 primaryKey 123
output 645 priority() 499 319
owner() 590 private() 633 RedisServiceProvider 465
PrivateChannel 626 reduce() 366
P progressBar() 645 references() 109
provides() 467 reflash() 556
pad() 345 proxies 665 refresh() 183, 225
paginate() 280 public_path() 339 regenerate() 555
PaginationServiceProvider 465 pull() 333, 344, 554, 586 register() 466
Paginator 281, 283 push() 146, 344, 553 Registered 484
parameters() 200 put() 186, 344, 430, 553, 584 registered() 296
parent 258 putFile() 426 RegistersUsers 294
partition() 358 putFileAs() 427 reject() 357
passes() 232, 249 putMany() 584 Relation 385
password() 395 putManyForever() 584 release() 535, 588, 589
PasswordReset 485 remaining 258
PasswordResetServiceProvider 465 Q remember 484
patch() 186 remember() 369, 586
path() 212, 425, 431 quarterly() 564 rememberForever() 586
pattern() 190 query() 210, 338 rememberToken() 104
patterns() 190 question() 645 remove() 555
PendingResourceRegistration 199 queue 539, 543 rename() 113
Queue 543 renameColumn() 111
renameIndex() 112

684 Предметный указатель

render() 438, 507, 654 rtrim() 324 setVisibility() 432
reorder() 165 Rule 239, 249, 424 shallow() 200
replace() 328, 345, 553 rules() 235, 319 share() 275
replace(<ассоциативный массив>) runInBackground() 566 sharedLock() 392
runtime 571 ShareErrorsFromSession 262, 470
235 shift() 344
replaceArray() 329 S ShouldBroadcastNow 623
replaceFirst() 328 shouldDiscoverEvents() 480
replaceLast() 329 salutation() 512 ShouldQueue 531
replaceMatches() 329 sass() 412 shouldQueue() 539
replaceRecursive() 345 saturdays() 565 shuffle() 337, 360
replicate() 149 save() 135, 138, 145, 148 signatureHasNotExpired() 560
replyTo() 499 saveMany() 145, 148 signedRoute() 559
report() 653 Schedule 561 simplePaginate() 281
request 485 schedule() 561 singleton() 456, 458, 459
Request 208, 209 schedule:run 569 singletonIf() 458
request() 208, 210 ScheduledTaskFinished 571 singletons 459
RequestHandled 485 ScheduledTaskSkipped 571 size() 431
requiredIf() 239 ScheduledTaskStarting 571 skip() 165, 348, 565
RequirePassword 471 scheduleTimezone 565 SlackMessage 517
rescue() 654 Schema 101 slice() 346
reset() 397, 438 Scope 387 slot 272
ResetsPasswords 318 scripts() 414 slug() 324
resolve() 454 sear() 586 smallIncrements() 104
resolved() 458 search() 353, 395 smallInteger() 102
resolveRouteBinding() 193 seconds 591 snake() 325
resolving() 461 secret() 643 Socialite 444
resource() 198 secure() 212 SocialiteWasCalled 444
resource_path() 339 secure_asset() 279 SoftDeletes 124
ResourceCollection 605 secure_url() 216 softDeletes() 105
resources() 198 Seeder 117 softDeletesTz() 105
response 485, 525 segment() 214 some() 352
Response 219, 221, 305 segments() 214 sometimes() 231
response() 219, 221, 428, 451, 604 select() 172, 391, 396 sort() 336, 358
ResponseFactory 219 selectRange() 397 sortBy() 359
REST 593 selectRaw() 389 sortByDesc() 359
restore() 144 selectYear() 397 sortDesc() 358
restoreLock() 590 send() 506, 522 sortKeys() 359
retry() 655 sendEmailVerificationNotification() sortKeysDesc() 360
retryUntil() 533 spatialIndex() 108
reverse() 360 317 splice() 346
rightJoin() 175 sendNow() 542 split() 351
rightJoinSub() 178 sendOutputTo() 567 srartsWith() 327
rollBack() 393 sendPasswordResetNotification() src() 408
root() 213 SSL 495
route 485 318 stack() 660
Route 186, 485 SendsPasswordResetEmails 318 start() 321, 645
route() 209, 216, 223, 523 SerializesModels 486, 497, 531 StartSession 470
route:cache 667 server 215 statement() 391
route:clear 667 ServiceProvider 466 status 543
route:list 202 session() 553, 554, 556 stopping() 544
routeIs() 214 session:table 552 Storage 426
RouteMatched 485 SessionServiceProvider 465 storage:link 422
routeMiddleware 185 set() 104, 331 storage_path() 339
routeNotificationForMail() 514 setAppends() 598 store() 426, 585
routeNotificationForNexmo() 517 SetCacheHeaders 471, 592 storeAs() 427
routeNotificationForSlack() 520 setCharset() 223 storedAs() 106
RouteServiceProvider 184, 450, setLocale() 579 storePublicly() 427
setPageName() 285
466 setStatusCode() 222

Предметный указатель timeTz() 104 685
timezone() 565
storePubliclyAs() 427 tinker 40 unsignedBigInteger() 102
Str 320 tinyIncrements() 104 unsignedDecimal() 103
streamDownload() 220 tinyInteger() 102 unsignedDouble() 103
StreamedResponse 220 title() 323, 518 unsignedFloat() 102
string() 101 TLS 495 unsignedInteger() 102
Stringable 320 to() 505, 518 unsignedMediumInteger() 102
stripBBCodeTags() 402 toArray() 363, 595, 598, 605 unsignedSmallInteger() 102
studly() 324 toBroadcast() 623 unsignedTinyInteger() 102
styles() 413 today() 339 unwrap() 363
stylus() 413 toggle() 148 up 671
subject() 498, 511 toHtml() 218 up() 100
submit() 397 toJson() 363, 594 update() 140, 151, 391
subscribe 483 toOthers() 623 UPDATED_AT 123
subscribe() 483 total() 285 updateExistingPivot() 149
SubstituteBindings 470 touch() 141 updateOrCreate() 140
substr() 325 touches 128 updateOrInsert() 151
success() 512, 518 trait_uses_recursive() 342 UploadedFile 424
sum() 179, 362 trans() 573, 575 upper() 323
sundays() 565 trans_choice() 576 URL 194, 217, 559
sungular() 325 transaction() 392 url() 213, 215, 217, 285, 395, 428,
sync() 147 transactionLevel() 393
syncWithoutDetaching() 148 transform() 340, 366 435
TranslationServiceProvider 465 urlTemporary() 428
T transport() 508 URL-параметр 45, 189
trashed() 144 useBootstrap() 281
table 123 tries 533 useCurrent() 106
table() 110, 152, 645 trim() 324 user 484, 485
take() 165, 348 TrimStrings 250, 470 user() 446
takeUntil() 348 truncate() 152 userAgent() 214
takeWhile() 348 TrustHosts 469, 666 username() 298
tap() 340, 367 TrustProxies 469, 665 using() 132
tapEach() 369 trustXSendfileTypeHeader() 220 uuid() 104
task 571 tuesdays() 564 uuidMorphs() 377
tel() 395 twiceDaily() 564
temporary() 110 type 632 V
temporaryRignedRoute() 559
terminate() 476 U validate() 229, 231, 245
text() 101, 395, 499 Validated 484
textarea() 395 ucfirst() 323 validated() 232
theme() 514 ui 615 ValidatePostSize 469
then() 568 ui:auth 289, 290 ValidateSignature 471, 559
thenPing() 569 ui:controllers 290 ValidatesRequests 204
thenPingIf() 569 unicode() 516 validateWithBag() 230, 232, 245
thiceMonthly() 564 unigue() 108 validationErrorMessages() 319
ThrottleRequests 449, 471 union() 168, 345 ValidationException 440
ThrottlesLogins 297 unionAll() 168 ValidationServiceProvider 466
throw_if() 653 unique() 244, 349 Validator 231
throw_unless() 653 uniqueStrict() 350 validator() 231, 294
thumb() 519 unless() 367 value 591, 592
thursdays() 564 unlessBetween() 565 value() 183, 341
time() 104, 395 unlessEmpty() 367 values() 347
timeout 534 unlessNotEmpty() 367 Verified 485
times() 343 unqueue() 550 verified() 317
timestamp() 103, 520 unread() 525 VerifiesEmails 316
timestamps 123 unreadNotifications() 524 VerifyCsrfToken 260, 448, 470
timestamps() 103 unsigned() 106 version() 415
timestampsTz() 104 viaRemember() 441
timestampTz() 103 View 218, 275
view() 187, 217–219, 498, 513

686 Предметный указатель

view:cache 666 whereIn() 162, 244, 356 withMessages() 440
view:clear 666 whereInstanceOf() 357 without() 374
ViewServiceProvider 466 whereInStrict() 356 withoutEvents() 493
virtualAs() 106 whereIntegerInRaw() 162 withoutFragment() 225
VISIBILITY_PRIVATE 426 whereIntegerNotInRaw() 162 withoutGlobalScope() 388
VISIBILITY_PUBLIC 426 whereJsonContains() 163 withoutGlobalScopes() 388
visible 597 whereJsonDoesntContain() 164 withoutMiddleware() 196
whereJsonLength() 164 withoutOverlapping() 566
W whereMonth() 161 withoutRelations() 533
whereNot() 243 withoutWrapping() 603
warn() 644 whereNotBetween() 161, 356 withPath() 282
warning() 518, 660 whereNotExists() 177 withPivot() 131
wasChanged() 142 whereNotIn() 162, 244, 356 withQuery() 607
wednesdays() 564 whereNotInStrict() 356 withQueryString() 282
week() 395 whereNotNull() 163, 243, 357 withResponse() 603
weekdays() 564 whereNull() 162, 243, 356 withTimestamps() 131
weekends() 564 whereRaw() 389 withTrashed() 182
weekly() 564 whereStrict() 355 withValidator() 235
weeklyOn() 564 whereTime() 161 words() 324
when() 166, 367, 460, 565, 600 whereYear() 161 WorkerStopping 543
whenEmpty() 330, 367 whisper() 635 wrap 602
whenNotEmpty() 367 width() 424 wrap() 338, 344, 603
whenPivotLoaded() 601 with 374
whenPivotLoadedAs() 602 with() 218, 341, 373, 445, 499, 511, Y
where() 159, 190, 243, 333, 355
whereBetween() 161, 356 556 year() 104
whereColumn() 159 withCallback() 221 yearly() 564
whereDate() 160 withCasts() 166 yearlyOn() 564
whereDay() 160 withChain() 538
whereDoesntHave() 171 withCookie() 549 Z
whereDoesntHaveMorph() 384 withCount() 182
whereExists() 176 withDefault() 133 zip() 368
whereHas() 171 withErrors() 233
whereHasMorph() 384 withFragment() 225
withInput() 232
withinTransaction 101

А Базовая аутентификация 471 Всплывающее сообщение 555
Блокировка Вход 61
Авторизация 61 ◊ исключительная 392 ◊ временный 441
Акцессор 136, 399 ◊ разделяемая 392 ◊ по жетону 610
Атрибут Выборка связанных записей
◊ компонента 270 В ◊ немедленная 373
Аутентификация 61 ◊ отложенная 373
◊ жетонная 610 Валидатор 229 Выход 61
Валидация 72, 229
Б Веб-маршрут 33 Г
Веб-служба 593
База данных Веб-страница входа 61 Гейт 301
◊ восстановление 116 Вещание 616 Гость 61
◊ обновление 115 Внедрение Группа маршрутов 196
◊ очистка 116 ◊ зависимостей 45, 453
◊ сброс 115 ◊ моделей 191

Предметный указатель ◊ ресурсный 198, 204 687
◊ ресурсный API 206
Д ◊ ресурсный подчиненный 199, Отложенное задание 526
◊ ведомое 537
Дамп 117 205 ◊ ведущее 537
Действие 30, 203 ◊ функция 31, 203 ◊ класс 526
Директива 49, 252 ◊ проваленное 526
Диск 419 Л ◊ функция 526
Отметка
Е Локализация 572 ◊ правки 38
◊ создания 38
Единая точка входа 85 М ◊ удаления 105
◊ чтения 521
Ж Маршрут 33, 184 Очередь 526
◊ именованный 54, 188
Журнал миграций 99, 116 ◊ канала 626 П
Журналирование 656 ◊ команды 647
◊ параметризованный 189 Пагинатор 280
З ◊ резервный 188 Пагинация 280
◊ совпавший 33 Папка проекта 28
Задание планировщика 561 Маршрутизатор 33, 184 Планировщик заданий 561
Запись-заглушка 133 Маршрутизация 184 Подключение к бэкенду 610
Запоминание пользователя 297 Массовое присваивание 42 Подмена
Застревание в кэше 415 Мечение файлов 415 ◊ гибкая 459
Миграция 37, 99 ◊ классов 458
И ◊ откат 37, 99, 115 ◊ реализации 458
◊ применение 37, 99, 114 Подписчик 482
Интернет-адрес Миниатюра 433 Поле
◊ временный 559 Модель 39, 120 ◊ внешнего ключа 57
◊ подписанный 558 ◊ ведомая 381 ◊ ключевое 38
◊ ведущая 381 ◊ набора 104
К ◊ конечная 132 ◊ перечисления 104
◊ начальная 132 ◊ строковое 101
Канал вещания 616, 625 ◊ промежуточная 132 ◊ текстовое 101
◊ закрытый 625 ◊ связующая 131 Политика 76, 306
◊ общедоступный 625 Модуль стартовый 85 Пользователь 61
Канал журналирования 656 Мутатор 136 ◊ зарегистрированный 61
Канал присутствия 628 ◊ текущий 61, 287
Ключ 38 Н Посредник 76, 469
Коллекция 343 ◊ группа 185
◊ заполняемая по запросу 368 Наследование шаблонов 52, 262 Построитель запросов 42, 120,
Команда Настройка
◊ класс 638 ◊ локальная 35, 86 139
◊ отложенная 648 ◊ рабочая 35 Правило валидации 72, 229
◊ функция 647 ◊ рабочие 88 ◊ объект 248
Компонент 268 Неотложное задание 535 ◊ расширение 247
◊ бесклассовый 274 ◊ функция 247
◊ бесшаблонный 273 О Право 61
◊ динамический 274 Предел 385
◊ полнофункциональный 268 Обозреватель 491 ◊ глобальный 387
Консоль Laravel 40 Обработчик события 477 ◊ локальный 385
Контекст шаблона 47, 252 Оповещение 509 Пресет 406
Контракт 459 ◊ адресат 509 Привилегия 61
Контроллер 30, 203 ◊ вещаемое 623 Провайдер 76, 464
◊ класс 31, 204 ◊ отложенное 542 ◊ обрабатываемый по запросу
◊ одного действия 31, 206 Отключение от бэкенда 613
467
◊ пользователей 287
Проверка
◊ завершающая 305
◊ предварительная 304

688 Сидер 117 Предметный указатель
◊ корневой 118
Проект 28 ◊ подчиненный 118 Ф
Путь 33 Скорость запросов 449
◊ шаблонный 33 ◊ ограничитель 449 Файл статический 55, 278
Слот 272 Фасад 34, 468
Р ◊ именованный 272 Формальный запрос 234, 313
Слушатель 477
Разграничение доступа 61 ◊ класс 477 Х
Раздел пользователя 61 ◊ отложенный 539
Разделяемое значение 275 ◊ функция 477 Хелпер 338
Распределенная блокировка 587 Событие 477 Хранилище ошибок 230
◊ немедленная 587 ◊ вещаемое 620 ◊ именованное 230, 233, 247
◊ с ожиданием 589 ◊ класс 477
Режим обслуживания 670 ◊ модели 490 Ц
Рендеринг 47, 252 ◊ строка 488
◊ отложенный 218 Создатель значений 277 Цепочка отложенных заданий
Ресурс 598 Составитель значений 276 537
◊ вложенный 601 Список маршрутов 33, 184
Ресурсная коллекция 604 Список пользователей 61 Ш
Стек 265
С Страж 287 Шаблон 47, 252
◊ включаемый 266
Связь 57 Т Шаблонизатор 47, 252
◊ «многие-со-многими» 128,
Таблица Э
146, 381 ◊ ведомая 381
◊ «один-с-одним» 127, 144, 145, ◊ ведущая 381 Электронное письмо отложенное
◊ обслуживаемая 120 541
380 ◊ связующая 128
сквозная 133 Тег компонента 270 Я

◊ «один-со-многими» 125, 144, У Язык
145, 378 ◊ изначальный 572
сквозная 132 Удаление «мягкое» 105, 143, 182 ◊ целевой 572

◊ замкнутая 134
◊ обобщенная 377
◊ полиморфная 377
Секретный ключ 91, 434
Секция 52, 262
Сессия 551


Click to View FlipBook Version