I'm trying to pass a variable from Controller to View :

**Controller**

```
class StaticDataController extends BaseController {

    public $layout = 'layouts.default';

    public function showIndex()
    {
        return View::make('index', array('test'=>'Hello World'));
    }

} 

```

**View**

```
@extends('layouts.default')

@section('content')
    {{ $test }}
@stop

```

**Layout**

```
<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
        @yield('content')
</body>
</html>

```

And gets following error :

```
Undefined variable: test (View: /srv/www/htdocs/test/app/views/index.blade.php) 

```

And here is my structure :

![enter image description here](https://i.stack.imgur.com/ixaeD.png)

P.S:

*[routes.php]*

```
<?php

Route::get('/', function()
{
    return View::make('index');
});

```