Advertisement
Guest User

MainController.php

a guest
Oct 1st, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Http\Controllers;
  4.  
  5. use App\Books;
  6. use App\Categories;
  7. use Illuminate\Http\Request;
  8. use Illuminate\Support\Facades\DB;
  9.  
  10. class MainController extends Controller
  11. {
  12.     public function index() {
  13.         $books = Books::all();
  14.         return view('books.welcome', compact('books'));
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement