Something looks fishy, like a Controller for table column names, but try this:
return view('table.column.mask', compact('column','table_name')); // PHP compact
OR
return view('table.column.mask')->with(['column'=>$column, 'table_name'=>$table_name]); // with array of vars
This is likely what you need. As far as I can tell, there's no chaining ->with()
More at Laravel Docs
You should be able to chain that call as with
returns the view object you are calling with
on.
with
has return $this;
as the return.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community