teepluss / laravel-theme

Theme and asset managing for laravel
MIT License
546 stars 132 forks source link

How to access view variable? #68

Closed MarekMaras closed 9 years ago

MarekMaras commented 10 years ago
    $clients = Client::all();
    $data = array(
        'clients' => $clients
    );
    return $this->theme->scope('admin.clients.index', $data)->render();

How to I access "$clients" in my view? Or how to I even pass it to the view so I can use blade "foreach" or any other methods...

Thanks!

teepluss commented 10 years ago
return $this->theme->of('admin.clients.index', $data)->render();