app/Http/Controllers/admin/CustomerController.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()
    {
        $obj = new ContactsModel;
        $data = $obj->select('con_name')->get();
        $cli = new ClienModel;
        $clien = $cli->select('cli_name')->get();
        return view('admin.customer.add',['data'=>$data,'clien'=>$clien]);
    }
public function create ( ) { $ obj = new ContactsModel ; $ data = $ obj -> select ( 'con_name' ) -> get ( ) ; $ cli = new ClienModel ; $ clien = $ cli -> select ( 'cli_name' ) -> get ( ) ; return view ( 'admin.customer.add' , [ 'data' => $ data , 'clien' => $ clien ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//dd($clien);