app/Http/Controllers/ProductController.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()
    {
         else{
        return view('products.create');
    }
public function create ( ) { return view ( 'products.create' ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// $ids = DB::table('vendor_details') //             ->select('user_id') //             ->get(); // //Create an array of all the user_ids in the vendor_details table // $id_arr = array(); // for ($i=0; $i < count($ids); $i++) {  //     $id_arr[] = $ids[$i]->user_id; // } // //Check if the logged in user is in the vendors_details table // if(in_array(Auth::id(), $id_arr)){ //     return view('products.create'); // } else{ //     return view('vendor_details'); // }