Questions tagged as 'laravel-5.3'

1
answer

Add field to standard laravel 5.3 log form

Good afternoon, I want to add the type field to the user of a laravel system and I'm doing it as follows: migration public function up() { Schema::create('users', function (Blueprint $table) { $table->increment...
asked by 12.03.2017 / 16:51
1
answer

Pass value from select to route in laravel

I do not know much about web development and I'm kind of lost. I need to pass the id of a movie to a laravel route and I'm not sure how to get that value. <select class="form-control" style="width: 20%" onchange="" id="select" name="filme"...
asked by 11.03.2017 / 15:30
1
answer

Read word file in laravel 5.3

I have a problem reading a Word file in laravel, the situation is as follows: I have a form where a person adds a word file into an input type file field. I want to get the text of this word, separate it into a variable to later write to the...
asked by 28.11.2016 / 15:45
2
answers

Set connection according to logged-in user data

I created a second connection in my config / database.php file and I will also create a third one, I wanted to know how I can switch between these connections according to the logged in user. config / database.php 'connections' => [...
asked by 30.09.2016 / 15:55
0
answers

Result of relationship with self-relationship?

Using the self-relationship with you the following result.: Collection {#335 ▼ #items: array:7 [▼ 0 => Post {#266 ▶} 1 => Post {#267 ▼ #fillable: array:3 [▶] +incrementing: false #connection: "sqlite" #t...
asked by 05.01.2019 / 01:38
0
answers

Uploading the file inside the ajax request

I am trying to capture data via ajax request, for file upload and is not returning value for the photo. Can anyone help me? Ajax: Outputtothedataconsole(thephotopathisselected!): PersonControl:publicfunctionpostStatePath(Request$request){...
asked by 13.09.2018 / 20:48
1
answer

How to not pass the ID of an element by the laravel URL

This is my route Route :: get ('companies / delete / {notice}', 'CompanyController @ delete'); this is the button action This is my role in controlling What happens if I pass this url right into the browser localhost: 8000 / bus...
asked by 23.08.2018 / 02:42
0
answers

How to write the value of a bootstrap select in the database?

I'm developing a system, and I need to write to the database data from a select option. When saved, it gives an error saying that the "type" field is null. Here is the code for better insight. View <div class="form-group">...
asked by 26.08.2018 / 18:38
1
answer

How to do the unit test in the class validator in a Laravel form?

A good day, gentlemen. I am a student of programming, at that moment I am studying how to make unit tests using Laravel 5.3 In my tests I came across the following problem: My little system only aims to register products in a database....
asked by 30.07.2018 / 16:50
1
answer

How to pass an array by ajax to the controller?

I have an ajax that sends data from my selects to my controler and from there I do a check and query, so far everything is working perfectly. The problem is that the last select that I send is an array, since it's a select multiple, and I'm not...
asked by 12.07.2018 / 19:19