skip to Main Content

show array item on blade laravel

Arrays: [ {"id":1,"group":"post","name":"Mi","value":"x3 poco"}, {"id":2,"group":"post","name":"iPhone","value":"14 pro"}, {"id":3,"group":"post","name":"Nokia","value":"C5"}, {"id":4,"group":"post","name":"Dell","value":"15 insp"} . . . ] IndexController.php file: $post = Post::all(); return view('index', compact('post')); index.blade.php file: Post Name: "{{ $post->name['iPhone']->value }}" I want to show the output as below: Post Name: "14 pro"…

VIEW QUESTION

Laravel 8 – Get URL path to root

Laravel site root is https://example.com/path_to_root/ To get to what would be URL path / in a normal site, you actually go to https://example.com/path_to_root/ So, the Laravel site is under /path_to_root/ and there is other non-Laravel content in for, example, https://example.com/other…

VIEW QUESTION

issues with Laravel9 Search form

I am trying to add a search form to my application. I thought I had everything right, but Laravel keeps on telling undefined $users in the view. The Form Below <form action="{{URL::to('/students')}}" method="post"> @csrf <div class="my-3"> <div class="input-group"> <input type="search"…

VIEW QUESTION
Back To Top
Search