Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ErrorException in FileViewFinder.php line 137:
  2. View [main] not found. (View: C:xampphtdocsstoreresourcesviewscurrenciesindex.blade.php)
  3.  
  4. InvalidArgumentException in FileViewFinder.php line 137:
  5. View [main] not found.
  6.  
  7. Route::resource('currencies', 'CurrencyController');
  8.  
  9. public function index()
  10. {
  11. // create a variable and store all the posts in it from the database
  12. $currencies = Currency::orderBy('id', 'asc')->paginate(5);
  13. //$currencies = Currency::all();
  14.  
  15. // return a view and pass in the above variable
  16. return view('currencies.index')->withCurrencies($currencies);
  17. }
  18.  
  19. @extends('main')
  20.  
  21. @section('title', '| Settings - Currencies')
  22.  
  23. @section('content')
  24.  
  25. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement