Questions tagged as 'laravel-5.2'

2
answers

Catch image inside storage folder

I'm uploading images to the folder storage , app/public , inside this I created a /banners folder and I'm uploading those images into this folder. How can I get these images and display them in the view?     
asked by 02.12.2016 / 22:57
1
answer

Use field returned from find to add more results in same query

In the code below I look for a product and get its "related" field to search the bank for all products (including itself) that have the same value in that field. Is it possible to do all this with just one query instead of two? $produto =...
asked by 03.03.2018 / 03:10
1
answer

Insert data into Oracle table "without returning id into"?

I'm using Laravel 5.2 and when I enter data it wants to return the last, but at the moment I want to insert and know if the operation was successful. My function in controller looks like this: public function cadastrar(), { $cod...
asked by 19.10.2017 / 20:16
1
answer

Please provide a valid cache path

I just made a git clone (copy) of a Laravel application just made in the company where I work. I circled composer update and artisan key generate to make the initial settings, as well as edited the .env file to con...
asked by 12.12.2016 / 11:51
1
answer

Eloquent: relationships between tables in a blog

One would have a practical example of using relationships in Eloquent as follows: I have a blog with several categories, in these categories I will have several Posts, as I do to display a category with several Post in Views. I've seen s...
asked by 23.01.2017 / 02:27
1
answer

Receiving an ajax request with laravel

I'm having trouble retrieving the data sent by my ajax to laravel . My ajax looks like this: var id = $(this).siblings(':hidden').val(), qtd = $(this).val(), dataUser = { "id": id, "qtd": qtd}; $.ajax({ type: 'POS...
asked by 20.10.2016 / 02:16
1
answer

How do I restrict access to the user registration page?

Next I am creating a project in laravel 5.2 I used the auth classes of laravel itself. And I would like to know how I can be setting it up so that the /register page is accessed only after the user logs in. Because by default it comes...
asked by 19.03.2016 / 17:12
1
answer

Call Oracle function in Laravel?

I made all the configuration to connect in Oracle, it connects, but I want to make an query inside a function, but it is giving the following error message:    QueryException in Connection.php line 729:       oci_bind_by_name (): ORA-01036: i...
asked by 18.10.2017 / 20:40
0
answers

Burning / Editing Laravel Checkbox 5.2

Hello, I am developing a Course Register in Laravel 5.2. I created CRUD perfectly, it creates, edits and deletes everything right, but in this register it has 3 items that are of type CHECKBOX, I can register and save in the bank (MySQL) correct...
asked by 21.11.2016 / 19:55
1
answer

Doubt with Laravel MVC

I made the presentation to the pfc teacher but she said that I broke the mvc pattern, calling the sql in the controller, and requested that I send it to the model and retrieve the query for the controller and send the email. But how can I get...
asked by 22.06.2018 / 17:36