0

Here is my route

 Route::get('/basic', 'LessonController@basic')->name('basic'); 
 Route::get('/basic/{id}', 'LessonController@show')->name('show');

I did when /basic its display but /basic/{id} its not display

4
  • Please edit your question and write your controller code Commented Jan 26, 2021 at 5:36
  • can you show us the route:list Commented Jan 26, 2021 at 6:22
  • show us your view Commented Jan 26, 2021 at 7:22
  • can I see your shoe method of LessonController class ? Commented Feb 3, 2021 at 7:41

2 Answers 2

1

It's mostly because your importing Your CSS and Javascript. Write them like this in view when your are using parameters

css

    <link rel="stylesheet" href="{{URL::asset('css/style.css')}}">

js

<script src="{{URL::asset('js/main.js')}}"></script>
Sign up to request clarification or add additional context in comments.

Comments

0

try it in rout

Route::get('/eachbasic/{id}', 'LessonController@show')->name('eachbasic');

2 Comments

Thanks! I tried but its still not working
Thanks for helping me, I fixed before!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.