lundi 15 juillet 2019

I am trying to use If() condition , however, it's not working in laravel

I have few field in my store method, so I wanted to use if() condition, but it's not working

here is code

    if($request->has('link'))
    {
        $data['link']=$request->link;

    }
    if($request->has('content'))
    {
        $data['content']=$request->content;

    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire