app/Http/Controllers/Admin/StatesController.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::all();
        return view('admin.states.index') -> with ('states', $states);
    }
public function index ( ) { $ states = State :: all ( ) ; return view ( 'admin.states.index' ) -> with ( 'states' , $ states ) ; }
Display a listing of the resource.
Display a listing of the resource .