Q. In Laravel, how do you define a route that connects to a Controller method?

लारवेल में, आप एक ऐसे मार्ग को कैसे परिभाषित करते हैं जो नियंत्रक विधि से जुड़ता है?

A
Route::controller('/path', 'Controller@method');
B
Route::get('/path', [Controller::class, 'method']);
C
Route::add('/path', 'Controller->method');
D
Route::map('/path', 'Controller->method');

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment