Questions tagged as 'laravel'

3
answers

Foreign keyless database in Laravel

I attended a class where a stock system is created in Laravel where the product and the category exist. But there is no foreign key, only a category_id column. How is this relationship made? Is this relationship in the application?     
asked by 08.11.2016 / 17:45
1
answer

List errors returned in an ajax request

I have a Controller that is returning errors like this: return response()->json(['erros' => $this->renderHttpException($e)]); I'm getting this json as a response to the ajax request: {"email":["The email field is required."],"tel...
asked by 23.09.2016 / 20:30
1
answer

Create / Modify table without deleting data Laravel Migrate

I have a question about laravel regarding the Migrates. I'm using Laravel 5.1 with SQLite database. When I run the command php artisan migrate or php artisan migrate:refresh , usually to add new tables or insert new fields to exi...
asked by 11.11.2016 / 19:45
2
answers

Delete file Laravel

When trying to delete an image from a specific directory I get the message that the file does not exist, however, referring to the path that the code is running I see that the file exists yes, and the path string is 100% correct. / p> I came t...
asked by 17.08.2016 / 22:28
1
answer

I can not do Laravel Authentication 5.2

I've been trying to authenticate for some time and I can not, I'm a beginner in the business, who wants to help me know that it's practically saving my life, since I've thought about giving up on it several times. I'm calling a controller met...
asked by 07.06.2016 / 15:42
1
answer

How to know if a column exists in a table in Laravel?

I wonder if there is any way to know if a column exists in Laravel . For example, I want to sort with data coming from the query string. If the value "column" exists in the table, then I command by that field. $coluna = Input::get('c...
asked by 29.04.2016 / 19:03
1
answer

Select dates based on the total sum of a given column [closed]

Good evening. Based on the example sample file attached, I would have to select all the dates that are the same and are in the same restaurant and that the sum of the quantity is > 10, because I need to disable those dates from my datepicker....
asked by 20.07.2016 / 03:18
1
answer

Edit record before passing by validation rule in Laravel

I have a form that registers clients. In the CPF registry field, I format the data with jQuery by entering the punctuation between the digits. It turns out that by entering this formatting, my Requets rules do not work corr...
asked by 25.11.2016 / 21:20
1
answer

Undefined variable: users

   Undefined variable: users (View: C: \ Users \ Vitoria \ Desktop \ Laravel \ resources \ Panel.blade.php <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"/> <title>BEM VINDO AD...
asked by 27.03.2017 / 16:05
1
answer

Laravel - Do not log in after registration ...?

How to remove automatic login after registering? I've commented the following line from the RegisterUsers file: public function register(Request $request) { $validator = $this->validator($request->all()); if ($val...
asked by 01.06.2016 / 16:45