app/Http/Controllers/StateController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $states = State::lists('name','id');
        return view('index',compact('states'));
    }
public function index ( ) { $ states = State :: lists ( 'name' , 'id' ) ; return view ( 'index' , compact ( 'states' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .