title: Laravel - Store multiple checkbox form values in database
body: <p>So I've got this code</p>
  
  <p><strong>View:</strong>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="checkboxes"&gt;
                           &lt;input type="checkbox" class="checkbox" name="services" value="{{ $service-&gt;id }}" id="{{ $service-&gt;id }}" /&gt;
                           &lt;label class="whatever" for="{{ $service-&gt;id }}"&gt;&lt;p class="serv-text"&gt; {{ $service-&gt;service_name }} + ${{ $service-&gt;price }} &lt;/p&gt;&lt;/label&gt;
                               &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Controller:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  public function store(Request $request)
      {
         orders::create(Request::all());
          return 'test';
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Model:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>class orders extends Model
  {
      protected $fillable = [
      'category', 
      'services',
      'total_price',
      'user_id',
      'status',
      'user_id'];
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I try to submit the form, in the database at services there is only one number even if I checked multiple boxes when I submitted the form.
  I've tried to find on google a solution but nothing.</p>