app/Http/Controllers/Admin/ActivityController.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()
    {
        if (!session()->get('schtoken')) {
            return redirect()->to('adminpages/login');
        }
        $data = [
            'session' => session()->get('schuser')
        ];
        return view('admin.pages.activity.create', $data);
    }
public function create ( ) { if ( ! session ( ) -> get ( 'schtoken' ) ) { return redirect ( ) -> to ( 'adminpages/login' ) ; } $ data = [ 'session' => session ( ) -> get ( 'schuser' ) ] ; return view ( 'admin.pages.activity.create' , $ data ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .