Laravel 12 REVOLUTION with AI
1K views
May 5, 2025
Learn about the revolutionary changes in Laravel 12, the popular PHP framework, and how it's integrating Artificial Intelligence to take web development to the next level! In this video, we'll dive into the exciting features and updates that are transforming the way we build web applications. Discover how Laravel 12's AI-powered tools are streamlining development, improving performance, and enhancing security. Whether you're a seasoned developer or just starting out, this video is a must-watch to stay ahead of the curve in the world of Laravel development. #laravel12 #laraveltutorial #chatgpt #laravelcourse
View Video Transcript
0:00
hi friends welcome to tutors funny
0:02
channel today I'm going to teach about
0:04
laral with today I'm going to start the
0:08
lavali so so first I'm going to go to my
0:13
chat
0:16
activity and
0:21
ask out to act as first you have to do
0:24
the prompt act as a world
0:30
best
0:32
laral developer
0:36
the prompt has been converted according
0:38
to the Laravel developers okay that's
0:41
how that's the thing you have to do it
0:42
so it has been converted successfully
0:44
now what you are going to do is I'm
0:46
going to ask the questions
0:48
so I'm going to I want
0:54
to I want to make
0:58
a
1:02
small
1:03
website in larable
1:08
12 so so great so it will be telling the
1:13
instruction first you are telling that
1:15
to how to install the Lar so here it
1:19
telling the how to install the Lover
1:21
after that they they telling that to
1:23
configure the database after that
1:26
migrated so we have created the three
1:28
different URLs you can see here okay so
1:32
we have to create the three different
1:34
URLs def mean that is a function so they
1:37
have your resources the create layout
1:41
this layout and the contact form the
1:44
contact form everything here it should
1:46
be
1:47
there telling that
1:49
here there okay so this is a simple way
1:53
so how to run the LA project it will be
1:55
telling that you have visit this site to
1:57
everything is there for if you are
1:59
connect with the authentication it goes
2:01
to that brief Lar B okay so here would
2:05
you like to generate a specific model
2:06
like blog and admin next okay so it will
2:09
be continue that part as well so first
2:12
you have to go through that model one by
2:14
one okay so first you have to telling
2:16
that uh simple smart guide okay so first
2:20
I'm going to write to this copy
2:23
this okay so simply you have to copy
2:26
this so it will be I'm going to go to
2:30
create a new
2:33
folder la web
2:39
i'm going to open a cm and paste on it
2:43
so if I paste this command what the
2:45
latest version on Laravel it is
2:47
installing the current version okay of
2:50
the Laravel it is installing the current
2:51
version press enter key on your
2:53
keyboard so what is the name of your
2:56
project is a my website this is a
2:58
project it has been created so here it
3:00
is it is simply convert as a latest
3:03
version you have to wait until the
3:05
installation has been completed
3:38
you have to install you have to wait
3:39
until the installation is
3:43
completed now you can see the website
3:45
has been created successfully now let's
3:46
go to the instruction of a so it say
3:50
that cd my website you have type the
3:53
command cd you just copy this paste on
3:56
it over here cd my website it goes to
4:01
this it's go inside this folder okay
4:04
it's telling the instructions
4:05
successfully correctly okay so after
4:08
that after that what I'm going to do is
4:10
we have to open up this project in my VS
4:13
code editor so that here we have a idea
4:16
so we have to Okay so first you have to
4:20
open up cmd portace open our project
4:25
okay so you have a if you know LA little
4:30
bit you can get the help of AI okay so
4:33
here it telling
4:35
that after I open up successfully you
4:38
can see the sorry you have to
4:40
successfully open up here now what I'm
4:42
going to do is here this is your folder
4:44
structure now it's telling that go
4:47
to configure your TN file this is
4:51
nothing but the database configuration
4:54
so we are getting this file you have to
4:56
go to my env file you can have this you
4:59
can have this one defaultly come as SQL
5:03
light we have to change this one as a
5:06
myq okay so here this one we write we
5:10
have all the things we have to select
5:13
all control + forward slash it
5:17
uncommented now I'm going to go
5:19
to my website this one I just
5:24
copied and paste on it over here and
5:33
conf after that what I'm telling
5:36
that we have to run the command PHP
5:39
addition so here open up the new
5:43
terminal you type on
5:46
it
5:47
PHP
5:49
artisan mic that's
5:53
it press enter on your keyboard you have
5:55
to wait until the command
5:59
ready okay if I get this error this is
6:02
not error i forgot to connect my
6:06
zam okay so my zam server is not running
6:09
that's why it's take here you have to
6:11
read error no connection is good okay so
6:14
you know again I'm going to run this
6:16
command now it telling that the your
6:19
database my does not uh MySQL so you
6:22
have to uh here we ask you this this is
6:25
your database this database my sign DB
6:29
okay so here it will be telling that
6:32
would you like to create it yes you have
6:34
to telling that
6:37
yes right now your database has been
6:39
created you can check it whether it's
6:41
working fine or not uh go to here open
6:46
up
6:48
admin now you will be able to check
6:50
whether it's corrected or corrected uh
6:53
created successfully or not you will be
6:55
able to check it over here okay you'll
6:59
be able to check it over here so after
7:01
that you have to create pages so these
7:03
are the pages you have to create okay so
7:06
the using the route basic blade so this
7:08
is the basic route so here you can see
7:10
here simple website okay so this is a
7:13
route you have to go to
7:15
the
7:17
web.php okay so the the thing is this
7:20
you have to it's not it's not explain
7:24
everything okay so you having an idea so
7:28
these are the routes so the routes we
7:30
have these are the routes it mentioned
7:31
the URL okay so we have just copied this
7:34
URL copy it you have to go to
7:38
that folder which is
7:41
a routes web.php here you have to paste
7:45
on it okay so here I don't need this one
7:49
uh here we have write this one here home
7:52
so I'm going to create a pages so I'm
7:54
going to play this inside the resources
7:57
folder resources folder view going to
8:00
create home dot plate.php
8:05
php okay this a file first file I'm
8:08
going to create what are the files you
8:10
have needed uh home about content so
8:13
second one is a
8:15
about dot play
8:18
[Music]
8:19
dotphp third one is
8:23
a
8:25
contact php we have created three
8:28
different
8:29
fates php contact and about okay these
8:33
are the pages we
8:35
Okay so here what I did here is here uh
8:39
I'm going to go to the got the thing is
8:42
we have to do the thing is here we have
8:46
to create the
8:47
layout.php here I'm going to create the
8:49
separate template
8:50
file so the same view folder I'm going
8:53
to create another file
8:59
layout.ph okay don't worry I'll be
9:01
explaining layout.blade blade.php which
9:04
is a template file header and footer are
9:08
key as same middle of the contain would
9:10
be changed the contain would be change
9:12
for every pages that is the meaning of
9:17
that okay so let's this is your template
9:21
file you can see the add HTML and
9:24
started and close it inside the head
9:27
there is a title and links this is the
9:29
this is the CSS part okay So here the
9:33
CSS we
9:35
haven't it not including here okay so
9:38
that we don't need this one so we have a
9:42
links here there is a links there attach
9:44
some links okay so I just copy
9:47
this okay so you have to paste it over
9:49
here layout page what happened okay here
9:52
it's a layout file after that we can put
9:55
it this
9:56
one uh what are the pages and the pages
9:59
this is home please copy it go to the
10:02
form.php and paste on it okay so another
10:06
pages are available so about page about
10:09
alo same similar design contact us page
10:12
uh here this is the contact form uh
10:14
contact us page you have a uh this
10:16
contact form okay so the contact date p
10:19
the form design the form design also
10:21
copied the contact pl format paste it
10:26
okay so the home also they are telling
10:28
that the same thing I just copied the
10:30
home uh that uh home.blade.php PHP based
10:34
on it about us here only the change is
10:37
this is the about
10:40
page that's it is telling that welcome
10:45
about
10:48
page that's it
10:52
okay now what I'm going to do is
10:54
everything is
10:55
perfect now I'm going to go to create
10:58
the control
11:04
So create the controller so create a
11:06
controller mean here this is a
11:07
controller creation you just copy
11:10
it control has been
11:14
created let's back over
11:17
here copy
11:20
this copy this okay copy this i just
11:26
copied okay
11:43
we have to go
11:46
to that uh control so I'm going to
11:50
create a control you already created so
11:52
go to here content controller you have
11:56
to paste on it here
11:58
that's it
12:00
testing now let file save right so
12:04
everything perfect now what I'm going to
12:06
do is here we have to do another thing
12:08
is now we have this one only I'm going
12:10
to handle by the controller so this
12:12
controller so we have to create this one
12:15
we have to just copy this two things we
12:17
have paste on it we do php page we do
12:20
PHP page
12:28
we have to paste it
12:30
option okay that's it now we are telling
12:33
that the the controller path where your
12:36
control is resided my controller is
12:38
resided
12:40
use app http controll as contact control
12:45
you're telling that where my control is
12:47
that's it you're telling that we are
12:49
control app http controll as contact
12:53
control
12:55
that's it that's the thing you have to
12:56
write it now you have to run the app you
12:58
already run PHP
13:05
artisan
13:11
so copy
13:13
this paste on it
13:17
here here it's working it's working
13:20
successfully
13:22
it's working successfully okay if you
13:24
have clicked about it scores the about
13:26
page successful if you click contact it
13:29
scores the
13:31
context okay it's working
13:34
successfully okay so this one we have
13:37
did it without applying the styles
13:39
without applying the styles it is
13:41
working without applying the style okay
13:44
this without applying style it's okay
13:46
okay so here send the request everything
13:49
is there that uh we will be able to send
13:51
the request because okay the the name
13:54
address all the things okay so we
13:56
haven't do this the database connected
13:57
on we just putting this one we telling
14:00
that so here the help of AI we have did
14:03
the small side you can see here first
14:06
what I did here is first here you can
14:10
see
14:12
here
14:15
first create at the project configure
14:18
the database connection after that we
14:20
have to create the URLs okay the this
14:22
URLs okay get if the if it is slash it
14:25
scores the homepage if it is slash it
14:27
scores the about us page okay this is
14:30
called as fn means a function it's
14:32
called the function about if slash it
14:34
the controller
14:36
show controller show action method it's
14:39
it's return the
14:41
context plate what you are written here
14:44
okay so here what I did here is the
14:47
layout the layout mean this is the
14:49
layout file okay so okay what are the
14:51
layout okay this is the your nail bar
14:54
okay nail bar nothing but this is a nail
14:57
bar okay it's a nar it is it is a common
15:01
template this is a template file this
15:03
template file is coming every pages see
15:06
here it display every go about it keep
15:09
the contact every page it is there the
15:12
middle of the contain would be changed
15:14
for every
15:15
pages okay so the middle of the content
15:18
you have called as heal content the heel
15:20
contain mean this heal content it is
15:23
coming you have to write it okay this
15:24
content what inside the section what is
15:27
the content you are written here this
15:29
things is would be changed each and
15:32
every pages this thing we have this we
15:35
have okay this how we have very simply
15:39
we have create the website using a okay
15:41
the without any styling okay without any
15:45
style i hope you guys understand the
15:47
things well thank you for watching
#Programming
#Software