Need help on fetching and submitting data in database using Laravel

Everything worked and actually data was fetched from DB successfully but earlier on submitting data, it returned error of (No message) serouslsly dont know where to start from!!!

Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException
No message

and

 protected function methodNotAllowed(array $others)
    {
        throw new MethodNotAllowedHttpException($others);
    }
 

I don’t know what went wrong , cuz initially everything worked just fine, submitted and fetched data from DB succesfully.

here is my code;

public function store(Request $request)
    {
        $this->validate($request,[
            'name' => 'required',
            'link'=>'required',
            'desc' => 'required'
        ]);
        //store data in DB

        $link = new link;
        $link->name = $request->input('name');
        $link->link = $request->input('link');
        $link->desc = $request->input('desc');
        $link->save();

        return redirect('/index')->with('success', 'Link Created');
    }

And when i try inserting data into DB using CLI its fetched and loads successfully.

php artisan tinker