title: How to show data from (multidimensional?) arrays with Laravel 5.3 blade
body: <p>Ok, so this is a question I hope can help other newbies as I'm running into errors pulling information from arrays in Blade and I'm unfamiliar with it's syntax to properly debug. </p>
  
  <p>I understand how to send array data to the view normally, for instance:</p>
  
  <pre><code>public function index() {
     $variable = DB::table('tablename')-&gt;where('ID', '535');
     return view('viewname', compact('variable'));
  }
  </code></pre>
  
  <p>This will send everything attached to the ID of 535 to the view. The title can then be printed out like so:</p>
  
  <pre><code>@foreach ($variable as $foo)
    {{ $foo-&gt;title }}
  @endforeach
  </code></pre>
  
  <p>Or if you want to print everything (I Think this is right?):</p>
  
  <pre><code>@foreach ($variable as $foo)
    @foreach ($foo as $name)
      {{ $name }}
    @endforeach
  @endforeach
  </code></pre>
  
  <p>That process I kind of understand. </p>
  
  <p>But where I'm getting stuck is with models. </p>
  
  <p>Let's say I set up some routes:</p>
  
  <pre><code>Route::get('User', 'UserEntryController@index');
  route::get('User/{id}', 'UserEntryController@show');
  </code></pre>
  
  <p>And in the controller one that grabs the show route:</p>
  
  <pre><code>   &lt;?php
  
  namespace App\Http\Controllers;
  use App\UserEdit;
  use Illuminate\Http\Request;
  use App\Http\Requests;
  
  class UserEntryController extends Controller
  {
  
     public function show(UserEdit $id) {
  
         return $id;
     }
  
  }
  </code></pre>
  
  <p>This will return everything attached to the model:</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class UserEdit extends Model  {
  
  
  
  
      protected $table = 'users';
  
  
      protected $fillable = ['ID', various', 'pieces', 'of', 'table', 'data'];
  
  
      protected $hidden = [];
  
  
      protected $casts = [];
  
  
      protected $dates = [];
  
  }
  </code></pre>
  
  <p>However if I change a line on the controller:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  use App\UserEdit;
  use Illuminate\Http\Request;
  use App\Http\Requests;
  
  class UserEntryController extends Controller
  {
  
     public function show(UserEdit $id) {
  
         return view('UserEdit', compact('id'));
         //return $id;
  
     }
  
  }
  </code></pre>
  
  <p>The aforementioned Blade code will not run. In fact, I can't parse the array sent out to the the view at all. Of course a straight {{ id }} will give me the actual contents of the array. </p>
  
  <p>{"ID":535,"various":"Del","pieces":"22","of":"32","table":"54","data":"John"}</p>
  
  <p>So I guess my question is. If I'm getting data that's in the form of an array like this. How do iterate through it to apply formatting, put it in tables, or put it in a form, etc?</p>