app/Http/Controllers/ControllerActivity.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()
    {
        $act = Santrisubjects::with('santri')->get();
        return view('pages.activities.index')->with(['act'=>$act]);
    }
public function index ( ) { $ act = Santrisubjects :: with ( 'santri' ) -> get ( ) ; return view ( 'pages.activities.index' ) -> with ( [ 'act' => $ act ] ) ; }
Display a listing of the resource.
Display a listing of the resource .