app/Http/Controllers/ProviderProductController.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()
    {
        $subcategories = Subcategory::orderBy('name', 'asc')->get();
        $subcategories->load('category');
        return view('provider.company.product.create', compact('subcategories'))->withTitle('Создание товаров');
    }
public function create ( ) { $ subcategories = Subcategory :: orderBy ( 'name' , 'asc' ) -> get ( ) ; $ subcategories -> load ( 'category' ) ; return view ( 'provider.company.product.create' , compact ( 'subcategories' ) ) -> withTitle ( 'Создание товаров'); }
Show the form for creating a new resource.
Show the form for creating a new resource .
//        if(Auth::user()->company_id != 42){ //            return view('provider.company.product.technik')->withTitle('Технические работы!'); //        } //$categories = Category::orderBy('name', 'asc')->get();