I'm new to laravel and i'm stuck at this. So this code gives me all my results from my table
$categories = new Categories();
$categories = Categories::all();
In my view i got a foreach loop to get all the values from the table: categories. Like so:
@foreach($categories as $categories)
<tr>
<td>{{$categories->category_id}}</td>
<td>{{ $categories->Description }}</td>
@endforeach
My question is, is there a way to print all the values seperate? So i can put an anchor before them? Do i have to put it in an array? My output must be something like this:
1----<a href="goGSM.php">GSM</a>
2----<a href="goGPS.php">GPS</a>
Thanks a lot!