jeudi 31 octobre 2019

Laravel checkbox not checking just because changing layout

Working on Laravel Project, I have two layouts.

  1. app.blade.php see on my git repo
  2. old_app.blade.php see on my git repo

When I use @extends('layouts.old_app') in my blade file, its working fine like this:
old_app.blade.php

But when I use @extends('layouts.app') in my blade file, the checkbox is gone:
app.blade.php

This is my Controller:

public function create()
{
    $permission = Permission::get();
    return view('roles.create', compact('permission'));
}

This is my View

<div class="form-group">
    @foreach($permission as $value)
       <label>
          <input type="checkbox" class="name" value="" name="permission[]">
       </label>
    @endforeach
</div>

Sorry for my bad english, I would to say thanks for anyone who can help me.




Aucun commentaire:

Enregistrer un commentaire