app/Http/Controllers/ModificationController.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(Modification $modification)
  {
        $modification = new Modification();
        $modification->table_name=request('table_name');
   $modification->save();
        Branc h::create(request(['branch_name','location']));
        return redirect('/modification');
      }
public function store ( Modification $ modification ) { $ modification = new Modification ( ) ; $ modification -> table_name = request ( 'table_name' ) ; $ modification -> save ( ) ; return redirect ( '/modification' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// /*  $request->validate([
            'shift_name'=>'required',
            'start_time'=>'required',
            'end_time'=>'required'
        ]);*/ //Branc h::create(request(['branch_name','location']));