What i want to achieve here is to return a string to my view in laravel, but i what i got is this error 

> 
> "Undefined variable: tod (View:
>  C:\xampp\htdocs\blog\resources\views\opj\_view.blade.php)"
> 
> 
> 

and here is my controller look liked :

```
public function index()
{
    $tod = 'test';

    $user = DB::select('select * from tbluser where ID like ?',['%USER%']);

    return view('opj_view',['user '=>$user ],['tod'=>$tod]);
}

```

and here is my view looked like :

```
   <body>
   <?php echo $tod; ?>
      <div>User</div>
      <table border = 1>
         <tr>
            <td>User ID</td>
            <td>Username</td>
         </tr>
         @foreach ($user as $users)
         <tr>
            <td>{{ $users->ID }}</td>
            <td>{{ $users->User_Name }}</td>
         </tr>
         @endforeach
      </table>

   </body>

```

How to print out `$tod` variable properly? Because when I delete my `['tod'=>$tod]` it works, it just string but it said `Undefined Variable`, I am newbie in PHP, is there some way to declare variable? from what i read may way is true.. please need help guys