Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laravel paginate #1

Open
tuvaergun opened this issue Dec 30, 2014 · 0 comments
Open

laravel paginate #1

tuvaergun opened this issue Dec 30, 2014 · 0 comments

Comments

@tuvaergun
Copy link

$rows = Company::where('is_active', 1)->paginate(10);

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Slim Application Error
The application could not run because of the following error:

Details

Type: ReflectionException
Code: -1
Message: Class request does not exist
File: /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php
Line: 501
Trace
#0 /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php(501): ReflectionClass->__construct('request')
#1 /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php(425): Illuminate\Container\Container->build('request', Array)
#2 /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php(809): Illuminate\Container\Container->make('request')
#3 /Users/tuva/Sites/ticmer/vendor/illuminate/pagination/Illuminate/Pagination/PaginationServiceProvider.php(23): Illuminate\Container\Container->offsetGet('request')
#4 /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php(207): Illuminate\Pagination\PaginationServiceProvider->Illuminate\Pagination{closure}(Object(TuvaServices\ServiceManager))
#5 /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php(498): Illuminate\Container\Container->Illuminate\Container{closure}(Object(TuvaServices\ServiceManager), Array)
#6 /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php(425): Illuminate\Container\Container->build(Object(Closure), Array)
#7 /Users/tuva/Sites/ticmer/vendor/illuminate/container/Illuminate/Container/Container.php(809): Illuminate\Container\Container->make('paginator')
#8 /Users/tuva/Sites/ticmer/vendor/illuminate/database/Illuminate/Database/DatabaseManager.php(160): Illuminate\Container\Container->offsetGet('paginator')
#9 [internal function]: Illuminate\Database\DatabaseManager->Illuminate\Database{closure}()
#10 /Users/tuva/Sites/ticmer/vendor/illuminate/database/Illuminate/Database/Connection.php(837): call_user_func(Object(Closure))
#11 /Users/tuva/Sites/ticmer/vendor/illuminate/database/Illuminate/Database/Eloquent/Builder.php(225): Illuminate\Database\Connection->getPaginator()
#12 /Users/tuva/Sites/ticmer/app/routes/site.php(101): Illuminate\Database\Eloquent\Builder->paginate(2)
#13 [internal function]: {closure}()
#14 /Users/tuva/Sites/ticmer/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#15 /Users/tuva/Sites/ticmer/vendor/slim/slim/Slim/Slim.php(1338): Slim\Route->dispatch()
#16 /Users/tuva/Sites/ticmer/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#17 /Users/tuva/Sites/ticmer/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#18 /Users/tuva/Sites/ticmer/vendor/slim/slim/Slim/Middleware/SessionCookie.php(110): Slim\Middleware\MethodOverride->call()
#19 /Users/tuva/Sites/ticmer/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\SessionCookie->call()
#20 /Users/tuva/Sites/ticmer/vendor/slim/slim/Slim/Slim.php(1283): Slim\Middleware\PrettyExceptions->call()
#21 /Users/tuva/Sites/ticmer/index.php(97): Slim\Slim->run()
#22 {main}

@tuvaergun tuvaergun changed the title laravel pagitan laravel paginate Dec 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant