Questions tagged as 'laravel'

1
answer

open two links in the controller?

I have a driver that saves the data when I make changes and redirects me to the main page when I do an update. return redirect()->route('payments.update', $payments->loan_id); all right, the thing I want to print a pdf return redire...
asked by 06.09.2016 / 01:15
1
answer

search validation in laravel

I have a search engine in laravel for teams by its ip and by its bar code for that create two scopes public function scopeBuscarip($query, $ip) { if (trim($ip) != '') { $query = $query->where('ip', $ip); } } public...
asked by 28.11.2016 / 04:49
1
answer

administration crud

I am working in an Online Store. On my system: There are several registered users in the database. Each user adds their products, their categories, and has their own customers. Upon entering the administration panel everyone sees the...
asked by 28.12.2018 / 07:37
1
answer

User Seeds Laravel do not work correctly with Passport

I am developing an API in Laravel by relying on the authentication it provides Passport , populating the development database with the Seeders and performing the tests with the client Postman . The problem is this:    By populating m...
asked by 04.04.2017 / 09:35
1
answer

How can I relate tables in Laravel with foreign keys?

I already related it to this: public function up() { Schema::create('personal', function (Blueprint $table) { $table->increments('id_personal'); $table->string('paterno',50); $table->string('materno',...
asked by 23.08.2018 / 17:59
1
answer

Carbon in Laravel updates wrong record

I have a problem in the controller with the UPDATE, my STORE is as follows: public function store(Request $request) { $date = Carbon::now('America/Asuncion')->toDateTimeString(); $cabcaja = new cab_caja($request->all()); $cab...
asked by 29.07.2016 / 06:30
1
answer

How to enter a subquery in laravel 5.2

I have this query in mysql SELECT id, name, (SELECT COUNT(id_team_local) FROM seasons WHERE id_team_local = teams.id) AS 'Partidos Jugados' FROM teams and I would like to give Laravel some idea of how I could do it?     
asked by 22.09.2016 / 19:45
2
answers

How to filter a table with a page?

I have a paged table, I also have a js function to filter data; only that the data is filtered in the current page and not in all the data this is the view: <table class="table table-hover table-striped table-bordered" id="MyTable">...
asked by 02.04.2018 / 19:37
1
answer

Laravel 5.6 query whereNotExist

I have a practice where you should add cars to an insurer and be able to register your insurance, and I'm trying to make a query that, when selecting an insurer from a list, I return all vehicles that are not in that insurer (including those tha...
asked by 28.08.2018 / 17:53
1
answer

the session variables are automatically destroyed in laravel

hi I have a project in laravel that installs it in a shared hosting, this project works properly locally, but when uploading it to the hosting, the session variables have stopped working or are lost immediately when sending a form. for example I...
asked by 28.01.2017 / 01:26