<?php namespace App\Http\Controllers; use App\Models\Echomail; class EchomailController extends Controller { public function __construct() { $this->middleware('auth'); } public function view(Echomail $o) { return view('echomail.view') ->with('o',$o); } }