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