예제 #1
0
 public function index()
 {
     $library = Library::all();
     return View::make('Admin/pages/library/allBook', compact('library'));
 }
예제 #2
0
파일: test.blade.php 프로젝트: BDMADE/DBA
$book = Library::all();
?>




 @foreach($book as $lib)
 {{$lib->book_name}}
 <input type="checkbox" name="" value="{{$lib->book_name}}"/>
<br/>
@endforeach


<div class="row">
                        <?php 
$book = Library::all();
?>
                        <div class="col-md-4">
                            <div class="form-group">
                                <div class="checkbox">
                                <label>Book Name</label>
                                @foreach($book as $lib)
                                {{$lib->book_name}}
                                <input type="checkbox" name="book_name" class="form-control" id="book_name" value="{{$lib->book_name}}" required="" >
                            @endforeach
                            
                            </div>
                            
                            </div>
                            
                        </div>