Questions tagged as 'laravel-4'

1
answer

Pagination with Eager Loading in Laravel

I'm having a small sorting problem involving paging and Eager Loading. What do I need to do: In a part of my site, I need to bring paged results from a subcategory The subcategory is a child of a category, so I have to display in a t...
asked by 06.02.2014 / 03:39
1
answer

Relationship counting in Laravel 4

In Laravel 4, we do not have the method present in Laravel 5.2 > = called withCount . This withCount is responsible for adding to the SELECT the count of items related to the current entity. For example: $u = Usuari...
asked by 09.08.2018 / 14:22
2
answers

How to use with no return from a DB :: Select - Laravel

To get the information, it is using a DB::RAW like this: ThisisinRepository.InController,IwouldliketousewithtobringtherelationshipsmadeintheModel: But DB::select returns by default a array , with the query done. I...
asked by 24.04.2018 / 22:16
1
answer

Help with view laravel

I need to show two categories in a view . I tried the following, but without success: public function index() { return View::make('Titles.IndexFutebol')->withType('time1')->withType('time2'); } only shows type time2 ....
asked by 23.03.2018 / 13:58
2
answers

500 server error after installing Laravel

I installed Laravel on Mac using Apache and PHP native to MAC. After installing the files from the APACHE folder I went to the browser and typed    localhost / laravel / public / And the following message came    Server Error 500    ...
asked by 18.11.2015 / 19:31
2
answers

Route does not execute controller method

Good afternoon. I have a problem with my php code developed in Laravel 4. I have a function in JavaScript that performs an action using $ .post and on success, calls another Javascript function, this second using $ .ajax. The two in .blade pages...
asked by 22.12.2015 / 19:01
0
answers

In Laravel 4, how can I convert the result of Model to XML?

In Laravel, how could I transform the following result into an XML structure? $usuarios = Usuario::with('nivel')->where(['status' => 1])->get()->toArray(); // Resultado: [ 'usuarios' => [ 0 => [ 'id...
asked by 07.07.2015 / 16:51
2
answers

NuSOAP using Laravel 4

I'm creating a Webservice on Laravel with the Noiselabs library. Route::any('x/ws/hello', function(){ $server = new \soap_server; $server->configureWSDL('server.hello', 'urn:server.hello'); $server->wsdl->schemaTargetNa...
asked by 05.02.2014 / 15:09
2
answers

Class not found, but another project worked

I have already inserted the Agent Class into another project using Laravel 4, everything was working correctly, but now that I'm trying to put in another project Laravel is returning the error: Symfony \ Component \ Debug \ Exception \...
asked by 17.02.2014 / 15:59
1
answer

ExceptionController error on Laravel 4 route

I set up a restore route in my routes.php <?php Route::model('user', 'User'); Route::model('comment', 'Comment'); Route::model('post', 'Post'); Route::model('role', 'Role'); Route::resource('upload', 'UploadController'); Route::get('ba...
asked by 19.03.2014 / 21:06