How to Mass Assignment laravel fillable

Posted 2 years ago by vishalpardeshi
<form action="display" method="post">

<label>Details</label></br> 
<input type="radio" name="vishal" value="male">vishal</br>  
<input type="radio" name="vishal" value="female">male</br>  
<input type="radio" name="vishal" value="other">other</br>  

<input type="hidden" name="_token" value="xYj3n27EQNybQvY29mDrZxoYy3sGtbFTqfN8xeso">


<label>Details</label></br> 
<input type="radio" name="rahul" value="male">rahul</br>    
<input type="radio" name="rahul" value="female">male</br>   
<input type="radio" name="rahul" value="other">other</br>   

<input type="hidden" name="_token" value="xYj3n27EQNybQvY29mDrZxoYy3sGtbFTqfN8xeso">


<label>Details</label></br> 
<input type="radio" name="demo" value="male">demo</br>  
<input type="radio" name="demo" value="female">male</br>    
<input type="radio" name="demo" value="other">other</br>    

<input type="hidden" name="_token" value="xYj3n27EQNybQvY29mDrZxoYy3sGtbFTqfN8xeso">

<input type="submit" name="submit" value="submit">
</form>

  • How i can insert without maual filling

-I have now this protected $fillable = ['gender','vishal','rahul', 'demo'];

-But my fields are multiple cant write maual fillable

-how can insert without $fillable in to database

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.