Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,490 --> 00:00:04,670
He's welcome to the course of Lavallade EPA Dalat material.
2
00:00:05,020 --> 00:00:11,630
This is potful inside this video, able to create our first program inside Laravel.
3
00:00:12,370 --> 00:00:19,300
So if I packed a folder structure, this is the application what we had installed inside last video,
4
00:00:20,320 --> 00:00:21,910
not to create first program.
5
00:00:22,210 --> 00:00:23,680
We need her out.
6
00:00:23,890 --> 00:00:28,720
We need a controller as well as we need a layout file.
7
00:00:29,290 --> 00:00:35,120
So a step by step four will create all these files inside this application setup.
8
00:00:35,950 --> 00:00:40,900
So if I packed the terminal, first of all, we will create a controller.
9
00:00:41,800 --> 00:00:49,390
So to create controller will use a command that is command provided by Laravel, something addition
10
00:00:49,900 --> 00:00:55,360
by the help of additions command will create Controller Suku here.
11
00:00:55,840 --> 00:01:00,820
Now if I time the command called BHP Addition pressing into.
12
00:01:02,650 --> 00:01:08,030
After typing this addition, it is going to give us a good command ballad.
13
00:01:08,740 --> 00:01:15,850
This is the command ballad, which is going to actually provide several functionalities, several features
14
00:01:16,060 --> 00:01:19,660
when you run any command from this command palette.
15
00:01:20,200 --> 00:01:27,250
So for now, let's add that if we're interested to create any controller, go inside this make section.
16
00:01:27,580 --> 00:01:32,520
Inside this MIEKE section, we have a command called MIQUEL Controller.
17
00:01:33,340 --> 00:01:42,460
So when we run the command call partition as a prefix after this partition, when we type make Anthoula
18
00:01:42,880 --> 00:01:44,590
controller name, we need to pause.
19
00:01:44,920 --> 00:01:48,310
Then it will create a new controller class.
20
00:01:49,240 --> 00:01:55,510
Now, if we want to learn all about Litsa, if we are interested to see the HELDMANN, all of this May
21
00:01:55,520 --> 00:02:04,660
controller come on simply Gourriel and type the command called BHP Addition Help for the Help manual
22
00:02:04,960 --> 00:02:06,300
and the command name.
23
00:02:06,790 --> 00:02:12,220
So we need the help manual guide for this controller pressing enter.
24
00:02:12,550 --> 00:02:17,130
Now, as you can see that this is the Help manual guide of MI controller.
25
00:02:17,770 --> 00:02:21,730
So when we use this May controller, we to pass an argument.
26
00:02:21,940 --> 00:02:25,500
And that argument is something the name of the class.
27
00:02:26,170 --> 00:02:28,780
And here we have several options.
28
00:02:29,060 --> 00:02:34,270
What actually optional if we want to pass while creating this controller.
29
00:02:34,780 --> 00:02:37,770
So right now, this is our very first program.
30
00:02:38,080 --> 00:02:43,690
So simply we will create a very basic controller without any options.
31
00:02:45,820 --> 00:02:57,340
So let's have BHP optician Mick Canterlot and we will call it as Daft Controller, not pressing enter
32
00:02:57,640 --> 00:03:01,060
as we can see that Canterlot created successfully.
33
00:03:01,810 --> 00:03:09,190
Now, if you go inside this application structure so free, you will find that file, what we had created
34
00:03:09,190 --> 00:03:11,080
via BHP audition.
35
00:03:11,500 --> 00:03:13,270
So we had created a controller.
36
00:03:13,570 --> 00:03:20,640
So controllers by default will store inside the setup inside this app folder, as did controllers.
37
00:03:20,920 --> 00:03:23,660
And here we will find dust controller.
38
00:03:24,040 --> 00:03:25,780
So this is the skeleton.
39
00:03:26,200 --> 00:03:31,180
Now, inside is a skeleton will add a method sulit of public
40
00:03:33,520 --> 00:03:34,480
function.
41
00:03:35,260 --> 00:03:40,960
Now, inside this Lizzi, we are creating a sample method inside.
42
00:03:40,960 --> 00:03:46,030
This will pass for now or static masses, let's say, within each one element.
43
00:03:50,970 --> 00:03:57,450
Welcome to Dust Control, I'll save the change.
44
00:03:57,960 --> 00:04:06,180
Oh, next week to create a road so that when we call that road into the browser, that road will point
45
00:04:06,180 --> 00:04:08,670
or call the sample method.
46
00:04:09,240 --> 00:04:15,420
So far out configuration inside this set up inside Lorrel application, we will go inside her doubtful
47
00:04:15,420 --> 00:04:20,940
door and open that door to BHP in the next few years.
48
00:04:21,240 --> 00:04:26,790
When we learn about Epper development, EPA dot, BHP file will be used.
49
00:04:27,310 --> 00:04:32,730
This is for EPA to paint and this is for vew application development.
50
00:04:33,420 --> 00:04:39,090
So if I click on this file now, go here by default, it will provide all Volcom page.
51
00:04:39,510 --> 00:04:43,580
So inside this file, first of all, really use this dust controller.
52
00:04:43,770 --> 00:04:45,290
So we need to import that.
53
00:04:45,750 --> 00:04:56,130
So use dust controller so successfully we have imported this dust controller is coming from App Astrobee
54
00:04:56,340 --> 00:04:57,960
and controllers folder.
55
00:04:58,470 --> 00:05:07,140
If we go to its namespace app ATP controllers and inside this controllers folder we have dust controller
56
00:05:07,560 --> 00:05:08,460
sugo here.
57
00:05:08,970 --> 00:05:17,130
Let's create a road that is for the get to Krysti and inside this will call it a sample making an array.
58
00:05:17,550 --> 00:05:25,080
Inside this we have the dust controller and inside this dust controller, which is a glass and inside
59
00:05:25,080 --> 00:05:29,160
this glass we will have this sample method.
60
00:05:30,120 --> 00:05:37,200
So if you save all these changes now we have configured or created a controller and added aroud inside
61
00:05:37,200 --> 00:05:37,950
this viewport.
62
00:05:38,310 --> 00:05:46,920
We now next to test this application, we to start our development server so can serve.
63
00:05:48,840 --> 00:05:51,880
The application has started into eight thousand one port.
64
00:05:52,200 --> 00:05:56,700
So if I open this link into the browser, this is our landing page.
65
00:05:56,970 --> 00:06:02,190
What we had seen by the help of this crowd will understand in a bit.
66
00:06:02,580 --> 00:06:05,520
So for now, this is the road what we had to test.
67
00:06:05,950 --> 00:06:11,960
So simply having copied this route back to browser and type the name called Sample.
68
00:06:12,270 --> 00:06:15,360
And as we can see that this is a static message.
69
00:06:15,690 --> 00:06:19,200
What we had supplied inside this sample mattered.
70
00:06:20,580 --> 00:06:22,560
This is only for the static message.
71
00:06:23,010 --> 00:06:33,000
Now let's add that view to create a few file and we will turn to the message from that file to return
72
00:06:33,180 --> 00:06:39,600
or to use of you file will use view, helper function, solitary turn.
73
00:06:40,180 --> 00:06:43,740
You will create a sample file.
74
00:06:43,740 --> 00:06:44,850
So let a sample of you.
75
00:06:44,860 --> 00:06:51,960
This is the name and inside Lowville application for The View file, we have the tablet engine which
76
00:06:51,960 --> 00:06:55,320
has the extension called dot dot BHB.
77
00:06:55,830 --> 00:06:58,140
It means this is the view file.
78
00:06:58,470 --> 00:07:00,780
We want to call this for this method.
79
00:07:01,170 --> 00:07:05,310
So when we create this view file, the file name is something simple.
80
00:07:05,310 --> 00:07:09,660
Hyphen, view, dot, dot, dot, dot, dot, dot.
81
00:07:10,440 --> 00:07:11,190
What is this?
82
00:07:11,490 --> 00:07:15,290
This is the extension of Laravel templates.
83
00:07:15,810 --> 00:07:23,640
So if I copy this name, all of your files will be created inside this resources folder and Fuze folder.
84
00:07:24,870 --> 00:07:29,340
Sugarhill Sample View, Dot, dot, BHP.
85
00:07:29,820 --> 00:07:38,100
Now inside this file, what I will do simply I will copy this is Static Method Kahil and it's a calling
86
00:07:38,100 --> 00:07:40,640
from a few file.
87
00:07:41,480 --> 00:07:48,980
Now if you see successfully we have linked this few file into the sample method we're returning here.
88
00:07:49,290 --> 00:07:50,250
So save the change.
89
00:07:50,280 --> 00:07:56,730
He's going to load this page and as we can see that we are getting that static message.
90
00:07:57,360 --> 00:08:05,790
In some cases, if we want to pass some values, dynamic values from this method to this file, we can
91
00:08:05,790 --> 00:08:09,810
also start making the second parameter here.
92
00:08:10,350 --> 00:08:20,670
Bastianelli, let's add that name equals to this is the name we are passing, Emile.
93
00:08:24,580 --> 00:08:34,030
So here we have two key value peers in terms of an area we're passing to this few file now, insider's
94
00:08:34,030 --> 00:08:37,900
view, why all these values will be available.
95
00:08:38,410 --> 00:08:45,600
The thing is that these two keys now, they will appear as a variable inside these few file.
96
00:08:46,030 --> 00:08:52,540
So to paint, that's a PSP and every type equal name.
97
00:08:55,800 --> 00:09:03,780
If I read this into a paragraph tag, let's open up the second paragraph based it here, and this is
98
00:09:04,560 --> 00:09:08,730
for the email address, save this change Gwent load.
99
00:09:09,120 --> 00:09:13,380
As we can see that this is the name and this is the e-mail value.
100
00:09:15,270 --> 00:09:24,580
We have the sort and operator of this syntax inside the syntax, as you can see that to print any value.
101
00:09:24,900 --> 00:09:25,840
This is the land.
102
00:09:26,070 --> 00:09:29,130
So is there any sort, good way to print any value inside?
103
00:09:29,970 --> 00:09:40,050
Yes, we have for the sort good farmable to simply get rid of this BHP antico in place of that simply
104
00:09:40,050 --> 00:09:51,240
put equals to sign for this BHP antico foot equals to sign all we have done save this change is going
105
00:09:51,270 --> 00:09:52,110
to load this page.
106
00:09:52,470 --> 00:09:55,740
As you can see that we have the same output.
107
00:09:56,400 --> 00:10:03,720
And the last thing for this feature is all about understanding all about this roud so rootkit, it means
108
00:10:03,720 --> 00:10:04,770
for the welcome page.
109
00:10:05,160 --> 00:10:10,300
And here inside this callback function really turning of you file.
110
00:10:11,490 --> 00:10:15,740
As for the video, as we know that if we're returning any of you file.
111
00:10:16,110 --> 00:10:19,280
So The View file name has the extension call retaught.
112
00:10:20,220 --> 00:10:22,620
So this is the file we're returning.
113
00:10:22,920 --> 00:10:27,390
This file will be available inside resources folder, views folder.
114
00:10:27,630 --> 00:10:29,040
And look at this file.
115
00:10:29,340 --> 00:10:30,870
Welcome dot dot.
116
00:10:30,900 --> 00:10:36,200
BHP and this function is known as closer function.
117
00:10:36,480 --> 00:10:42,650
So this is an example of closer out because this route is not using any controller.
118
00:10:42,870 --> 00:10:48,920
Instead, here we have the first value as a route and the second value we have.
119
00:10:48,930 --> 00:10:55,440
The function means callback function and inside this callback function really turning off you file.
120
00:10:56,250 --> 00:10:58,980
So this is an example of closer aroud.
121
00:10:59,880 --> 00:11:02,610
So as this is our first program.
122
00:11:02,880 --> 00:11:09,630
So all we have, the basic concept we had discussed now the next video we had seen or we will see the
123
00:11:09,630 --> 00:11:14,850
concept of migration inside Laravel so far this recession.
124
00:11:14,850 --> 00:11:17,290
Guys, thank you for watching and have a great day.
12555
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.