app/Http/Controllers/RegisterController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(RegisterRequest $request)
    {
        $input = $request->all();
        $register = Registration::create($input);
        Mail::to('cmaroska@marocit.de')->send(new EmailAgain($register));
        return redirect()->back()->with('success',  'Hallo ' . $input['name'] . ', ' . 'du hast dich erfolgreich registriert');
    }
public function store ( RegisterRequest $ request ) { $ input = $ request -> all ( ) ; $ register = Registration :: create ( $ input ) ; Mail :: to ( 'cmaroska@marocit.de' ) -> send ( new EmailAgain ( $ register ) ) ; return redirect ( ) -> back ( ) -> with ( 'success' , 'Hallo ' . $ input [ 'name' ] . ', ' . 'du hast dich erfolgreich registriert' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// $this->validate($request, [ //     'title' => 'required', //     'slug' => 'required|unique:posts', //     'body' => 'required', //     'published_at' => 'date_format:Y-m-d H:i:s', //     'category_id' => 'required' // ]); // $data = $this->handleRequest($request); //$request->user()->posts()->create($data); // $input = $request->all(); // $input['slug'] = str_slug($request->slug, ('-')); // $request->user()->posts()->create($input); //return $request; //return redirect(route('backend.blog.index'))->with('success', 'Your Post was created successfully' ); // return $request->all(); //dd($request->old('answer-1')); //dd($input);