Questions tagged as 'laravel-5'

1
answer

How do I set a different route helpers public_html () from laravel in laravel 5.1?

Good guys, the problem is this, I try to save an image file in the public folder of a hosting, which I modified, but it does not save the image where I need it, what I have done is the following: In the hosting I have the public folder called...
asked by 12.08.2017 / 18:01
2
answers

How do I access a file created in the storage_path () folder in laravel?

I create a pdf with the package barryvdh / laravel-dompdf as follows: public function generarPdf(Request $req) { $datos = $req->data; Debugbar::info($datos); $archivo = storage_path().'\pdf\equipos\'.$datos[1].'-'.$datos[2]....
asked by 23.06.2017 / 09:23
3
answers

Authentication with another laravel table 5.4

I have a project in Laravel 5.4 and I want to use the authentication system that it brings, but with the information that is found in another table that has already been created through the migrations. The truth is that I have surfed all over...
asked by 07.06.2017 / 23:38
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

Get the database value in an html select?

How can this be done that is shown in the value but with a select that brings the values of the database Like the following example: <input type="text" name="measure" class="form-control{{ $errors->has('measure') ? ' is-inva...
asked by 21.08.2018 / 22:25
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
0
answers

Foreign key registration

Good morning To start work on laravel 5.5, I have two tables, one where I have an administrative user, and another where voting users are added, when I register a voting user I see this error, SQLSTATE[HY000]: General error: 1364 Field 'us...
asked by 28.09.2018 / 01:58
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