Questions tagged as 'laravel'

1
answer

Problem deleting relational data

Gale need to delete cascading data, deleting the record from the users table is not deleting data from the documents table Migration users: Schema::create('users', function (Blueprint $table) { $table->increments('id'); $...
asked by 20.02.2018 / 21:42
1
answer

Type error: Argument 1 passed to: hasPermission () must be an instance of: Permission string given

I'm stuck in an error here in Laravel and I do not understand why it's occurring, the message itself I understood, that I'm passing as a parameter to the function a value that is string when it should be an instance of my model, but before it wo...
asked by 20.02.2018 / 15:51
0
answers

How do I make a nested list via json with laravel?

I'm trying to make a nested list via json, with laravel, example, the table companies, have several products each company, I want when I click on a particular company, appear the products registered only in that company that I clicked, but not I...
asked by 26.02.2018 / 21:11
0
answers

Manipulate the DOM to make multiple PUTs

In the image below, when clicking on 'change', I am able to change a field in the database, register the record, according to the number indicated by the user in the input next to the button. Hereisthecode:View:<tbodyid="body">...
asked by 25.02.2018 / 06:26
0
answers

Creating multiple zip files

I have a problem in PHP / Laravel to create multiple zip files in synchronous mode, I copy all commands that are generated and squeeze into the shell, it performs beauty, but when I step into the PHP run it only generates the first file. Cont...
asked by 25.02.2018 / 20:38
0
answers

Query works in MySQL, but not in Laravel

I run a query on MySQL that works and on Laravel does not, follow SQL : select resource_id as "pedido", count(resource_id) as "perguntas", date_received from perguntas_pos where status="UNANSWERED" group by 1 order b...
asked by 18.02.2018 / 21:41
0
answers

Empty online problem - Laravel

I have a problem, I have a few months of experience in Laravel and I did not see this type of problem happen, when submitting a form the following error appears:    Error Exception Trying to get property of non-object in LivroCon...
asked by 20.02.2018 / 14:29
0
answers

CSS and JS of laravel project does not work on NGINX

configuration / etc / nginx / sites-evaluable / default server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html/; index index.php index.html index.htm index.nginx-debian.html; server_name 10.152.16.97; sendfile...
asked by 21.02.2018 / 15:13
0
answers

Laravel - (path for simple changes in documentation)

I have documentation to modify, however the programmer is professional, as I'm starting, I'm totally lost where to find the documents. For example, index.php has some paths, but when I get the documentation it's pointing to, I do not think so....
asked by 13.02.2018 / 19:24
1
answer

Laravel - Return values in master layout

I have an application using laravel 5.5, there was a need to insert a dynamic field in the footer that is located in the master layout, but I am not able to return the data in it, I could not find a solution to my problem. p> The main route is...
asked by 09.02.2018 / 15:21