<?php

namespace App\Http\Controllers;

use App\Student;

class HomeController extends Controller
{

    public function index()
    {
        $students = Student::all();
        return view('welcome')->with('students',$students);
    }
}
