There are two controllers. The first of them is responsible for the input form. The second one displays the values. That is, the data (variables) have nothing in common with each other - they are taken from different tables. There were difficulties during the formation of the template -

Trying to get a property of non-object (View: /home/vagrant/Code/New/resources/views/bron/_form.blade.php) (View: / home / vagrant / Code / New / resources / views / bron / / _form.blade.php) (View: /home/vagrant/Code/New/resources/views/bron/_form.blade.php)

<!DOCTYPE html> <html lang="en"> <head> {{ HTML::style('css/app.css') }} {{ HTML::script('js/vendor/jquery.js') }} {{ HTML::script('js/vendor/bootstrap.js') }} @yield('styles') </head> <body> @include('partials._header') @include('partials._nav') @include('bron._form') @yield('bar') @include('nomer.index') @yield('content') @include('partials._footer') @yield('scripts') </body> 

Apart, everything works, but not together.

    1 answer 1

    Judging by the error, you are trying to pass a property of an object that does not exist to the template.

    Ie, you use somewhere, for example:

     $data->title 

    but you need:

     $data['title']