5.4.6 laravel yordamida ochiladigan dinamik qiymatni qanday olish mumkin

Iltimos, ochko'zlikdan foydalanib, narxni olish uchun muammo bor, iltimos, men hayvonga yangi.

Blade kodi:

<form method="POST" action="{{url('/add_sub_cat')}}" enctype="multipart/form-data">
    <input type="hidden" name="_token" value="{{ csrf_token() }}">
    <div class="form-group">
    
      
    </div>
    <div class="form-group">
      
      <input type="text" class="form-control" name="subcategory" id="" {{ old('subcategory') }}>
    </div>

    <div class="form-group">
       <button type="submit" class="btn btn-default">Create</button>
       Cancel
    </div>
</form>
0
Javobimni bir marta tekshiring
qo'shib qo'ydi muallif Sona, manba
Javobimni bir marta tekshiring
qo'shib qo'ydi muallif Sona, manba
Javobimni bir marta tekshiring
qo'shib qo'ydi muallif Sona, manba
uni nazoratchi sifatida yozganmisiz?
qo'shib qo'ydi muallif Sona, manba
uni nazoratchi sifatida yozganmisiz?
qo'shib qo'ydi muallif Sona, manba
uni nazoratchi sifatida yozganmisiz?
qo'shib qo'ydi muallif Sona, manba
Ha, buni yozganman
qo'shib qo'ydi muallif Amir Savvy, manba
Ha, buni yozganman
qo'shib qo'ydi muallif Amir Savvy, manba
Ha, buni yozganman
qo'shib qo'ydi muallif Amir Savvy, manba

8 javoblar

Iltimos, HTML yorlig'ini tanlash uchun nom bering.

Ex uchun:


Kodingizdagi nom xususiyati yo'q.

1
qo'shib qo'ydi
thanks @Muthu, men buni qildim :)
qo'shib qo'ydi muallif Amir Savvy, manba

Iltimos, HTML yorlig'ini tanlash uchun nom bering.

Ex uchun:


Kodingizdagi nom xususiyati yo'q.

1
qo'shib qo'ydi
thanks @Muthu, men buni qildim :)
qo'shib qo'ydi muallif Amir Savvy, manba
Try this.

1.In controller get all the categories list like below.

$categories=DB::table('categories')->get();//use table or model name ur wish.

step 2:pass those values to view page like this:

  return view('viewpagename',compact('categories'));

Controlle part is done 

Now go to view blade.php page and then continue like this:



 
1
qo'shib qo'ydi
bu bajarilganmi? @ MuhammadAmir
qo'shib qo'ydi muallif Sona, manba
mamnuniyat meniki :)
qo'shib qo'ydi muallif Sona, manba
Ha, rahmat, rahmat
qo'shib qo'ydi muallif Amir Savvy, manba
yordam uchun ko'p rahmat
qo'shib qo'ydi muallif Amir Savvy, manba
Try this.

1.In controller get all the categories list like below.

$categories=DB::table('categories')->get();//use table or model name ur wish.

step 2:pass those values to view page like this:

  return view('viewpagename',compact('categories'));

Controlle part is done 

Now go to view blade.php page and then continue like this:



 
1
qo'shib qo'ydi
bu bajarilganmi? @ MuhammadAmir
qo'shib qo'ydi muallif Sona, manba
mamnuniyat meniki :)
qo'shib qo'ydi muallif Sona, manba
Ha, rahmat, rahmat
qo'shib qo'ydi muallif Amir Savvy, manba
yordam uchun ko'p rahmat
qo'shib qo'ydi muallif Amir Savvy, manba
Try this.

1.In controller get all the categories list like below.

$categories=DB::table('categories')->get();//use table or model name ur wish.

step 2:pass those values to view page like this:

  return view('viewpagename',compact('categories'));

Controlle part is done 

Now go to view blade.php page and then continue like this:



 
1
qo'shib qo'ydi
bu bajarilganmi? @ MuhammadAmir
qo'shib qo'ydi muallif Sona, manba
mamnuniyat meniki :)
qo'shib qo'ydi muallif Sona, manba
Ha, rahmat, rahmat
qo'shib qo'ydi muallif Amir Savvy, manba
yordam uchun ko'p rahmat
qo'shib qo'ydi muallif Amir Savvy, manba

Hi You are missing the name attribute in </div> <div class="form-group"> <input type="text" class="form-control" name="subcategory" id="" {{ old('subcategory') }}> </div> <div class="form-group"> <button type="submit" class="btn btn-default">Create</button> Cancel </div>

0
qo'shib qo'ydi
Buni bilib oldim, @AdnanMumtaz, mening kunimni saqlab qoldingiz :)
qo'shib qo'ydi muallif Amir Savvy, manba

Hi You are missing the name attribute in </div> <div class="form-group"> <input type="text" class="form-control" name="subcategory" id="" {{ old('subcategory') }}> </div> <div class="form-group"> <button type="submit" class="btn btn-default">Create</button> Cancel </div>

0
qo'shib qo'ydi
Buni bilib oldim, @AdnanMumtaz, mening kunimni saqlab qoldingiz :)
qo'shib qo'ydi muallif Amir Savvy, manba

Hi You are missing the name attribute in </div> <div class="form-group"> <input type="text" class="form-control" name="subcategory" id="" {{ old('subcategory') }}> </div> <div class="form-group"> <button type="submit" class="btn btn-default">Create</button> Cancel </div>

0
qo'shib qo'ydi
Buni bilib oldim, @AdnanMumtaz, mening kunimni saqlab qoldingiz :)
qo'shib qo'ydi muallif Amir Savvy, manba
Laravel Uzbek Community
Laravel Uzbek Community
413 ishtirokchilar

PhP |BotsUz
PhP |BotsUz
93 ishtirokchilar

Phpni o'rganishni Hohlasangiz https://t.me/joinchat/AAAAAE-KRc5dd5tPMmGmWA A'zo bo'lin