app/Http/Controllers/RayonController.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)
    {
        Rayon::create([
            'nama_rayon' => $request->nama_rayon,
            'pembimbing' => $request->pembimbing
        ]);
        return redirect('/rayon');
    }
public function store ( Request $ request ) { Rayon :: create ( [ 'nama_rayon' => $ request -> nama_rayon , 'pembimbing' => $ request -> pembimbing ] ) ; return redirect ( '/rayon' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .