app/Http/Controllers/NewController.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()
    {
        $name = 'asmaa';
      return view('welcome', compact('name'));
    }
public function index ( ) { $ name = 'asmaa' ; return view ( 'welcome' , compact ( 'name' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .