app/Http/Controllers/studentcontroller.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()
    {
        $s=session('sname')->name;
        $m=result::query()->where('s_name','like',"$s")->get();
        return view('studmark',compact('m'));
    }
public function index ( ) { $ s = session ( 'sname' ) -> name ; $ m = result :: query ( ) -> where ( 's_name' , 'like' , " $ s " ) -> get ( ) ; return view ( 'studmark' , compact ( 'm' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .