Laravel Sinhalen Tutorial 06-What Is a Controller - මොනවද මේ Controller කියන්නේ?

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 49

  • @hishanabeysiriwardana6833
    @hishanabeysiriwardana6833 2 ปีที่แล้ว +6

    Laravel 8 වලින් උඩ වර්ශන් වලට මේ $namespace ප්‍රොපටි එක ඩිෆෝල්ට් එන්නේ නෑ. ඒක නිසා අපිට මේ error එක හදාගන්න මුලින්ම,
    #අපි හදාගත්තු controller ෆයිල් එක use කරන්න ඕනේ.
    use App\Http\Controllers\PagesController;
    #ඊට පස්සේ අපේ Controller එක මේ විදියට ඩිෆයින් කරන්න ඕනේ.
    පලවෙනි විදිය
    Route::get('/users', [UserController::class, 'index']);
    දෙවෙනි විදිය
    Route::get('/users', 'App\Http\Controllers\UserController@index');
    උඩ ක්‍රම දෙකෙන් කැමති එකක් use කරන්න පුලුවන්

    • @codeWolfSL
      @codeWolfSL 2 ปีที่แล้ว +2

      මේ කෝඩ් එක වැඩකරනව කස්ටිය.. thank you brother!

  • @kaisert4k447
    @kaisert4k447 3 ปีที่แล้ว

    Thank you

  • @kulasiriniit
    @kulasiriniit 2 ปีที่แล้ว

    supper video

  • @vishwagopallawa
    @vishwagopallawa 3 ปีที่แล้ว +7

    2021 දී අලුත් update එකේ මේ ක්‍රමය වැඩ කරන්නේ නැති වෙයි ඒක නිසා පල්ලෙහා තියෙන විදිහට කරලා බලන්න
    with the new update this method of routing will not work
    SOLUTION
    1. go to web.php and add in the top the following
    use App\Http\Controllers\(your controller name )
    ex: use App\Http\Controllers\PagesController
    2. then use the route code like below
    Route::get('/about',[::class,'']);
    ex: Route::get('/about',[PagesController ::class,'indexaboutus']);
    Thank you tech zone bro .... මමත් laravel ඉගෙන ගන්න මේ video ටික බලන ගමන්

  • @dasundhananjaya299
    @dasundhananjaya299 2 ปีที่แล้ว +4

    Target class [PagesController] does not exist. error එක එනව. comment section එකේ දාල තියන solution වැඩ කරන්නෙත් නෑ වගේ

    • @nirocreation5813
      @nirocreation5813 ปีที่แล้ว

      use App\Http\Controllers\PagesController;
      Route::get('/about',[PagesController::class,'indexaboutus']);

  • @chameen.sandeepa
    @chameen.sandeepa 2 ปีที่แล้ว +4

    Route::get('/about','App\http\controllers\PagesController@IndexAboutUs');
    2022.03 ---> Set the route like this in your web.php

  • @terryrocker8681
    @terryrocker8681 4 ปีที่แล้ว +7

    Latest laravel version route::get('about','classname@method name') demmama exception ekak enawa...
    Solution eka,
    Route::get('about',[FrontendController::class, 'METHODNAME']);

  • @IncomeGenerate-i2c
    @IncomeGenerate-i2c 2 ปีที่แล้ว +1

    Target class[PageController]dose not exit kyl enawa

  • @kaisert4k447
    @kaisert4k447 3 ปีที่แล้ว

    Ayye puluwan nam reactjs tutorial set ekak genawada

  • @nilana9107
    @nilana9107 4 ปีที่แล้ว +5

    route::get("about",[pagescontroller::class,'indexaboitus']);

  • @saranimanodya7670
    @saranimanodya7670 2 ปีที่แล้ว

    Target class [PagesController] does not exist. solution please

    • @yuhaskeynuka5581
      @yuhaskeynuka5581 2 ปีที่แล้ว +2

      Route::get('/about','App\Http\Controllers\PageController@Indexaboutus');
      It will be worked.

    • @angelofernando2pac
      @angelofernando2pac 9 หลายเดือนก่อน

      ​@@yuhaskeynuka5581it worked! Thank you so much❤

    • @harshabandara7038
      @harshabandara7038 7 หลายเดือนก่อน

      ​@@yuhaskeynuka5581Its work ❤

  • @nisalratnapala6460
    @nisalratnapala6460 3 ปีที่แล้ว +1

    Target class [PageController] does not exist. How can i fix this ?,i tried editing the code as show in the comments section still i got the same output.

    • @rashichery1933
      @rashichery1933 3 ปีที่แล้ว

      same here

    • @rashichery1933
      @rashichery1933 3 ปีที่แล้ว +1

      use App\Http\Controllers\Pagescontroller;
      Route::get('/about', [Pagescontroller::class, 'indexaboutus']);
      use this

    • @savindyathathsarani5791
      @savindyathathsarani5791 3 ปีที่แล้ว

      @@rashichery1933 also its not working

    • @yuhaskeynuka5581
      @yuhaskeynuka5581 2 ปีที่แล้ว +1

      Route::get('/about','App\Http\Controllers\PageController@Indexaboutus');
      Web.php eke me route eka gahala balanna...wada karanawa

  • @dinabro5739
    @dinabro5739 6 ปีที่แล้ว +2

    niyamai digatama karahan comment halanna wenne aduwen bn

  • @TheADD.
    @TheADD. 4 ปีที่แล้ว

    This is a great video series I have seen. Thanks for your greate effort. We hope very usefull video serias like this again and again.

  • @dharanisewwandikasirisekar1737
    @dharanisewwandikasirisekar1737 6 ปีที่แล้ว +2

    maru

  • @charithgunathilaka
    @charithgunathilaka 4 ปีที่แล้ว +1

    core php valin hadana ekada laravel valin hadana ekada vadaa secure, security valin vaddaa honda mona vidiyada?

    • @techzone-lk-zone3075
      @techzone-lk-zone3075  4 ปีที่แล้ว +1

      Ow core php hdddin api hamadema blnna oni . But laravel framework nisa core eka eyalama hondata hdla tyne

    • @charithgunathilaka
      @charithgunathilaka 4 ปีที่แล้ว

      @@techzone-lk-zone3075 mama issella php use kale, oyage laravel video tika niyamai, dan laravel valin ekak karanna one, lesi vage

  • @sasithamunasinghe3794
    @sasithamunasinghe3794 3 ปีที่แล้ว +1

    Target class [FrontendController] does not exist. mehema akak anwane

    • @techzone-lk-zone3075
      @techzone-lk-zone3075  3 ปีที่แล้ว

      bro man ne krnne parana laravel walin oyage versio eka mkkda

    • @udaribatuwanthudawa5825
      @udaribatuwanthudawa5825 3 ปีที่แล้ว

      Matath e error ekama enawane. Version eka 8.40.0

    • @gavindusankalpa2166
      @gavindusankalpa2166 2 ปีที่แล้ว +1

      @@udaribatuwanthudawa5825 Route::get('/contact', 'App\Http\Controllers\PagesController@indexcontactus'); try this

  • @savindyathathsarani5791
    @savindyathathsarani5791 3 ปีที่แล้ว +1

    There is an error.
    Target class [PageController] does not exist.
    and i tried this one also..
    Route::get('about',[FrontendController::class, 'METHODNAME']);
    its not working...
    How to fix it

    • @samiya99
      @samiya99 2 ปีที่แล้ว

      check this link .. parth issue

  • @dumithjayasinghe3912
    @dumithjayasinghe3912 6 ปีที่แล้ว +1

    patta

  • @shyamalherath5148
    @shyamalherath5148 5 ปีที่แล้ว +1

    thanks mchn

  • @nuwanmudalige5254
    @nuwanmudalige5254 5 ปีที่แล้ว

    Keep it up !

  • @kaisert4k447
    @kaisert4k447 3 ปีที่แล้ว

    Container eken giyama target does not exits kiyala watila stack trace, request, app, user kyl table ekak tyn page ekak load wenne ei ayye

  • @tharushakavishan4720
    @tharushakavishan4720 4 ปีที่แล้ว +2

    2020

  • @ashensavinda99
    @ashensavinda99 4 ปีที่แล้ว +1

    Bro views hadana ekei controllers hdana ekei wenasak na neda?

    • @techzone-lk-zone3075
      @techzone-lk-zone3075  4 ปีที่แล้ว

      Views kiynnr uset ta pena de. Contrlers kiynne backend eka handle krna class rkak

    • @ashensavinda99
      @ashensavinda99 4 ปีที่แล้ว +1

      @@techzone-lk-zone3075 ah ok bro.thnks!

  • @videoloooe1384
    @videoloooe1384 6 ปีที่แล้ว +2

    hello kollo, stop the backround music its not professional way of playing music,change the backround color of the visual code as

  • @terryrocker8681
    @terryrocker8681 4 ปีที่แล้ว

    api dan view ekak hadana contact kiyala harida, passe router karanawa, contact ekatai contact.php ekatai, user mysite.com/contact and mysite.com/contact.php address eke dunnath weda karanna, eka bad practise ekakda brother?