app/Http/Controllers/Front/userController.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()
    {
        $data = ['id'=>'112','name'=>'hima'];
        return view('front/index',
        $data
    );
    }
public function index ( ) { $ data = [ 'id' => '112' , 'name' => 'hima' ] ; return view ( 'front/index' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .
// return view('front/index',('name' => 'James')); // return view('front/index',compact(['name' => 'James'])); // compact('data')