All language subtitles for 3.crud-operations-pattern

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (SoranĂ®)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Before we move on, let's talk about CRUD. Do you

know what that acronym stands for?

It stands for create, read, update, and delete.

These are the four basic operations for working with a resource.

In our application, we have a blog post resource, and we

want to allow users to create new posts.

Also, we need to provide a way to read them, in other words,

to show the information about a specific post.

And we also want to allow users to update them and delete them.

This pattern is so common that frameworks like Laravel

provide a lot of functionality to manage these operations

in a predictable and uniform way.

For example,

Laravel provides us with a special type of controller

known as a resource controller.

This resource controller assumes that you will implement

CRUD operations on a specific resource.

So unlike the regular controller, it will be prepopulated with certain actions.

And here are the names of these actions that will be provided by default. Create

and store should sound familiar because that is exactly how we named our two

routes for creating and storing a new post resource.

So the create action should serve a form for creating a new resource, and store

action should actually store that resource in the database.

The show action should read the information from the database about a particular

resource instance and show it to the user. Edit and update are similar to create

and store, but the edit action serves the form for modifying an existing

resource instance and update is used for updating information about that

instance. Destroy is self‑explanatory.

It is used for deleting a specific instance of the resource from the

database. So these actions round up all of the CRUD operations.

This only leaves us with the index section,

which is usually used to present all of the

instances from that specific resource.

So if the resource in question is a blog post,

this action should show a list of all blog posts from the database.

In the next lesson,

we will implement this resource controller in our own application.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.