app/Http/Controllers/UsersController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $distributorLists = PriceList::where('role', '=', 'Distribuidor')->get(); 
        $ironmongerLists = PriceList::where('role', '=', 'Ferretero')->get(); 
        return view('users.create',compact('distributorLists','ironmongerLists'));
    }
public function create ( ) { $ distributorLists = PriceList :: where ( 'role' , '=' , 'Distribuidor' ) -> get ( ) ; $ ironmongerLists = PriceList :: where ( 'role' , '=' , 'Ferretero' ) -> get ( ) ; return view ( 'users.create' , compact ( 'distributorLists' , 'ironmongerLists' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .