app/Http/Controllers/EmployeeController.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(Request $request)
    {
        $employees = new Employee();
        $employees->name_employee = $request->name_employee;
        $employees->email = $request->email;
        $employees->save();
        return redirect()->route('employees.index')->with('success', 'Смена готова!');
    }
public function store ( Request $ request ) { $ employees = new Employee ( ) ; $ employees -> name_employee = $ request -> name_employee ; $ employees -> email = $ request -> email ; $ employees -> save ( ) ; return redirect ( ) -> route ( 'employees.index' ) -> with ( 'success' , 'Смена готова!'); }
Store a newly created resource in storage.
Store a newly created resource in storage .