Undefined variable: category in edit blade

I have this in my controller, but it keeps comes our below error in my edit.blade ErrorException Undefined variable: category (View: namespace AppHttpControllers; use AppModelsCategory; use IlluminateHttpRequest; class CategoryController extends Controller { /** * Display a listing of the resource. * * @return IlluminateHttpResponse * */ public function __construct() { } public function index() { … Read more