Questions tagged as 'laravel'

0
answers

Massive Validation of a Datatable using Ajax and Jquery

Greetings to the whole community, I have a question that I still can not solve, I comment a little on the case: I have a datatable that feeds from an excel, that is, I charge the server an excel, the process and feed a datatable. It should...
asked by 24.11.2017 / 22:04
1
answer

Add message to middleware laravel 5.5

I have a middleware that validates if the person verified your email, which works perfect because if you did not verify it, it returns it to your home. How can I add an alert message once it is redirected that says you should verify your emai...
asked by 17.10.2017 / 06:11
1
answer

Datatbles js does not detect the displayed data

At the moment of wanting to initialize a table of Datatable js without ajax I can not show the data that the view already showed, I put the following example code <table id="products-table" class="table table-bordered table-striped table-ho...
asked by 18.09.2017 / 19:27
1
answer

Relate tables with laravel

I want to relate two tables, and keep the two ids in another table to relate them, for example: I'm logged in with a user, and I create a product, how do I add the id of the user and the id of the product in an additional table if the product...
asked by 19.09.2017 / 10:36
2
answers

Laravel | Id generated automatically

I am doing a news system and I want my url in the following way: http://web.com/noticias/{id_generado}/ The {id_generado} is an id that I generate using the str_random(10) function. The problem of the matter is: What happen...
asked by 08.09.2017 / 01:00
0
answers

Does not recognize Requests in Laravel 5.5 project [closed]

I have the following methods in a controller: public function edit2($id) { $post = Post::find($id); $this->authorize('pass', $post); $categories = Category::orderBy('name', 'ASC')->pluck('name', 'id'); $tags...
asked by 24.04.2018 / 03:01
1
answer

How to show data with formats in a pdf

I have a textarea with an editor to send data with formats such as in bold, bullets, etc. and when I show that data in a pdf it shows them as follows: <p><b>LUGAR: </b>En estudio</p><p><b>CAPELLÁN:<...
asked by 08.08.2017 / 04:16
1
answer

laravel width and high storage

What would be the code to know the width and height of an image in a directory? I was currently doing it with getimagesize() but I wanted to know if it could be done with storage of laravel . Something like: Storage::size('file...
asked by 05.08.2017 / 03:45
3
answers

error when sending array to vista laravel

I have an error and look for several ways to send the array and in the same error mark me when sending the array view. I'm sending a parameter to the method putEdit ($ id) and this should make me a query to the database and return it to the edit...
asked by 24.08.2017 / 01:54
2
answers

How do I duplicate the records of a table, modifying the data of a column?

I explain: I have a parts table with the fields id, name, dad_id, team_id, status . I capture the data of the parts of the team that I want to copy: $datos_partes = Partes::select(array('nombre', 'id_equipos', 'id_padre', 'status'))...
asked by 10.08.2017 / 11:27