Questions tagged as 'laravel-5'

1
answer

Eloquent Count + Group By + Inner join

I am having some problems with the queries in the ORM-Eloquent, I have integrated eloquent in codeigniter, I am trying to make the following query: SELECT tp.*, COUNT(*) as cuenta FROM tipo_llamadas tp INNER JOIN encuestas e ON tp.id = e.id_ti...
asked by 15.12.2016 / 16:52
1
answer

The "bash init.sh" command does not create the ".homestead" folder

what could it be? It only worked once ... then I deleted that folder together with .ssh and when I tried the process again ... it did not work anymore :( I have uninstalled the Oracle VirtualBox, also the vagrant and the Gib..then I have r...
asked by 26.02.2017 / 19:29
1
answer

How to save data in a table related to another in Laravel?

I have a model called User that can take on several roles, such as an Administrator, a Supervisor, a teacher, anyway. Therefore for each of the roles I create other entities that will be related to the User model. Now, create a form to be able t...
asked by 21.12.2016 / 04:14
1
answer

How to do a visit counter in Laravel 5?

I am working on Laravel 5.3 and I am looking for some package or some data to make a visit counter for both a web in general, and for every article that contains the site. I'm more interested in each article.     
asked by 23.09.2016 / 01:27
1
answer

a dynamic selection

the BD "deposits" 'id', 'cantidad', 'num_autorizacion', 'fecha', 'asesor', 'created_at', 'updated_at', 'encontrado', 'contrato_id' in the controller $depositos = Deposito::orderBy('fecha') ->whereIn('encontrado', ['no'])...
asked by 05.11.2016 / 19:12
1
answer

Problems with the Cors in Laravel and Angular

I am trying to send the information from AngularJ to my apirest of L5 the information is from the Login e users with your password the error is as follows. I have tried for minutes to apply several L5 packages in relation to this...
asked by 08.09.2016 / 20:04
1
answer

validate data with the request

example I have a view with {!! Form::text('pagado',$pago, null, ['class' => 'form-control', 'placeholder' => 'Ingrese Cantidad $$$' , 'required']) !!} the variables I bring from a database $ payment. I have a request (PaymentRequ...
asked by 24.08.2016 / 18:26
1
answer

Error handling in Laravel

I would like to know how to handle personalized messages in errors. For now I have this in app / Exceptions / Handler.php public function render($request, Exception $e) { return response()->view('errors.error', ['error_message' =>...
asked by 16.08.2016 / 16:06
1
answer

Laravel | Fill in 2 MySQL tables at the same time

I am working on an application in Laravel, and I have 3 MySQL tables: ( role-users-permissions_users ), I need to know how to fill 2 tables in a single register ie the user registers, a id is saved as a primary in the table " users ", and that...
asked by 02.07.2016 / 19:24
1
answer

Auth :: login ($ user) laravel

I'm using Auth::login($user); to log in manually using fluent / querybuilder    Example $count = DB::table('users') ->where('username', '=', $username) ->where('password', '=', $password)...
asked by 06.09.2016 / 22:58