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 ටික බලන ගමන්
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.
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
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?
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 කරන්න පුලුවන්
මේ කෝඩ් එක වැඩකරනව කස්ටිය.. thank you brother!
Thank you
supper video
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 ටික බලන ගමන්
Thank you!
thanks
Target class [PagesController] does not exist. error එක එනව. comment section එකේ දාල තියන solution වැඩ කරන්නෙත් නෑ වගේ
use App\Http\Controllers\PagesController;
Route::get('/about',[PagesController::class,'indexaboutus']);
Route::get('/about','App\http\controllers\PagesController@IndexAboutUs');
2022.03 ---> Set the route like this in your web.php
Latest laravel version route::get('about','classname@method name') demmama exception ekak enawa...
Solution eka,
Route::get('about',[FrontendController::class, 'METHODNAME']);
Yes laravel update ekedi route class eka tmy danne
Target class[PageController]dose not exit kyl enawa
Ayye puluwan nam reactjs tutorial set ekak genawada
route::get("about",[pagescontroller::class,'indexaboitus']);
Target class [PagesController] does not exist. solution please
Route::get('/about','App\Http\Controllers\PageController@Indexaboutus');
It will be worked.
@@yuhaskeynuka5581it worked! Thank you so much❤
@@yuhaskeynuka5581Its work ❤
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.
same here
use App\Http\Controllers\Pagescontroller;
Route::get('/about', [Pagescontroller::class, 'indexaboutus']);
use this
@@rashichery1933 also its not working
Route::get('/about','App\Http\Controllers\PageController@Indexaboutus');
Web.php eke me route eka gahala balanna...wada karanawa
niyamai digatama karahan comment halanna wenne aduwen bn
+D99 channel okk
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.
maru
core php valin hadana ekada laravel valin hadana ekada vadaa secure, security valin vaddaa honda mona vidiyada?
Ow core php hdddin api hamadema blnna oni . But laravel framework nisa core eka eyalama hondata hdla tyne
@@techzone-lk-zone3075 mama issella php use kale, oyage laravel video tika niyamai, dan laravel valin ekak karanna one, lesi vage
Target class [FrontendController] does not exist. mehema akak anwane
bro man ne krnne parana laravel walin oyage versio eka mkkda
Matath e error ekama enawane. Version eka 8.40.0
@@udaribatuwanthudawa5825 Route::get('/contact', 'App\Http\Controllers\PagesController@indexcontactus'); try this
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
check this link .. parth issue
patta
thanks mchn
Keep it up !
Container eken giyama target does not exits kiyala watila stack trace, request, app, user kyl table ekak tyn page ekak load wenne ei ayye
2020
Bro views hadana ekei controllers hdana ekei wenasak na neda?
Views kiynnr uset ta pena de. Contrlers kiynne backend eka handle krna class rkak
@@techzone-lk-zone3075 ah ok bro.thnks!
hello kollo, stop the backround music its not professional way of playing music,change the backround color of the visual code as
+Video Loooe elama
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?
Ow ehma krnna epa