Laravel 8 tutorial in Hindi # View
HTML-код
- Опубликовано: 10 сен 2020
- in this laravel 8 Hindi video tutorial, we learn what is view and how to view it. this video is made by anil Sidhu in the Hindi language
we also learn new update which is coming with laravel 8th version
laravel full course with every topic
steps of this video
What is View
Make View
Call View
Pass Data in View
Interview Question for view
1: While loading the view from the controller can we check whether view/blade file exist or not: We can use the code view()->exists('users')
2: Why we do not create view using command line? : In html we have no need of namespace that’s why. Secondly we have set the path on router not need to create file on CMD
sir. You are doing an excellent job, and love from Bangladesh.
very good video, I like your tottorial we are all frinds learnings in your chennal code step by
Completed this part.Thank you sir for this amazing series.
one of the best teacher thank you sir. Bahut he bahtreen tareqy sy paraty ho love you from pakistan
sir please make this series from scratch to Advance .As u mention before it will be 100 + video series.It also very helpful if u fulfill ur commitment.Thanx
function show($name) {
if(view()->exists('users')){
return view('users',["name"=>$name]);
} else { echo "Not Found"; }
}
Thank You Shubham Sir ji I will apply this function nd got'it LOVE YOU YRR
thank oyu
Awesome man!!
Good Job Sir
Sir make one video on prerequisites for laravel 8, what are the important part of php is required for laraval, when we start laravel after starting php & all
Very nice tutorial
KINDLY MAKE ADVANCE SERIES OF LARAVEL AS U MENTIONED IN VIDEO ALSO with professional heavy
web application thanks so much
In My Short Knowledge.
1Yes we have check that user exist or not by using conditional statements.
2 I am create controller by using file name on controller, but it's not work than we have to create controller by using CMD. Controller is main component in laravel that's we we create Controller on CMD because it create all file which to be needed.
3 In view we create php file in visual studio because we have set the path on router not need to create file on CMD
KINDLY MAKE ADVANCE SERIES OF LARAVEL AS U MENTIONED IN VIDEO ALSO THIS SERIES IS WORTHY SO THANK YOU FOR SUCH A GREAT SERIES
Sure .. you will get soon
@@codestepbystep i use php namespace resolver extension to import automatically , it works splendidly !
1. Html page ke liye need nhi padti kuki usme koi namespace ki jarurat nhi hoti.
2. if((view()->exists('users'))) {
return view('users');
} else {
echo "Not found";
}
Jaisa ki apne btaya hai routes define krne ka 2 tarika hota hai... 1: Route::get('/about/{name}', function ($name) {
return view('about',["name"=>$name]);
}); 2:Route::view('/about', 'about'); so mai yha parameter kaise pass kru...?
sir make a new series on laravel depth concepts
sir do you have any github repository for these tutorials? answer for the question is if (view()->exists('users'))
sir asa ku hank view se data bhejna ho to routing me bhi handle karna parta han???
request phle controller par jati then...then wha se agr hum view ko call kare ge to view call ho jae ga to phr route ku??
Sir agar aapke pass laravel 8 ke interview question with answer pdf file h to pls share with me.
Check Kr skte hain .blade file exit krti hain yaa nhi exits() method use
phele se kaise check kr sakte hai k view exists krta hai ya nahi? and view command line se kiyun nahi banaya ? Sir iske answer bata do.
Yes we can use this function to check as view exists or not
if ( view()->exists('users') ) {
return view('users');
} else {
echo " do not exists ";
}
advance laravel ki series kab ay g?
Check Kr skte hain .blade file exit krti hain yaa nhi
Sir i am learning node i have basic knowledge of php too i want to learn laravel too so like how to get started ? Or should i learn laravel 8 or can learn 7 too ?
start with laravel 8 directly
make ecommerce project in restapi + vue js 3
to check whether view exist or not we have open if block and write
if(view()->exists->('user')){
return view('users',["name"=>$name]);
}else {
return "View Not Found";
}
where we right that code ?? in controller or view ??
Sir please share me both question answer.
koi prerequisite ha.. is series ka? i don't know php or any backend technology. should i start learning this?
you should know first the basics of PHP. Then this tutorial will be beneficial for you.
To create view file by command
github.com/svenluijten/artisan-view
to check on middleware
means ?
its show me a error- "Use of undefined constant user - assumed 'user' (this will throw an Error in a future version of PHP)";
Sir plz ap bataye laravel me new file kese banaye or run kese kre or localhost:8000 kese aayega
bhai laravel install karke cmd me type karo : laravel new blog
then aapki file ban jaegi aur aapko ye url provide kar diya jaega
View simple html hoti ha is na koi namespace ya koi or important information laravel ki traf sy by default add ni hoti isi liye ham view k liye command line use ni krty.
Or view kesy check krty hai, yeh ni pta ap plz explain kr dein....
100% correct
bhai multiapl function same controller me kayse banaye
Mughe samgh nhi aayae
class UserController extends Controller
{
public function show($id){
return "This is my first controller...".$id."";
}
public function user($para){
if(view()->exists('users')){
return view('users',['name'=>$para]);
}else{
echo "sorry your view doesn't exists...";
}
}
}
how to use resource controller in laravel 8 ?
I will make video soon on resource . Its in queue
@@codestepbystep sir app na dali nhi abhi tak resourse controller ka tutorial.
its not working just showing me the $name only after hello what to do ?
Sir I m facing 404 error when I run the url
localhost/project name/public/use
first check your localhost is running or not then locate the project through cmd and run the php artisan serve {your-project-name}
in controller file:
function show() {
if(view()->exists('users')){
return view('users',["name"=>$name]);
} else { echo "Not Found"; }
}
in web file:
Route::get('users',[usercontroller::class,'show']);
is_exists
please sir advance Laravel kab tak ayega ?
soon
@@codestepbystep thank you sir😊
@@codestepbystep when ? its been 4 months already
Hello sir,
Agar mai Route
Route::view('/test/{id}', 'welcome');
Banata hu,
To ID ko welcome page me kaise access karenge.
Sir I m facing 404 error when I run the url
localhost/project name/public/user
Pls solve my problem
Controller sirf command line se hi bana sakte hai manually not possible
manually v bna sakte hai but usme namespace pass krna hoga
@Sunil Yadav by default controller jo hota he uska code copy krke new file me pest krke apne hisab se change kar skte he
When will laravel advance series launch ?????
Php artisan route:list
if (View::exists('auth.login')) {
//
}