Questions tagged as 'laravel-5'

1
answer

Indicate the base_path () correctly in Laravel 5.6

I'm doing tests on deploy . A few days ago I did it in the following way, I uploaded the files in my CPanel hosting to the root, that is, /home/miproyecto and that of the public folder in /home/miproyecto/public_html , I made th...
asked by 20.08.2018 / 17:12
1
answer

Pass a view data by href to another view with method post

I am learning laravel for a job in college with my classmates, they have more experience in the language but none of them could explain how to do this I have a data in a view that I want to send to another to fill a space in a form The cod...
asked by 29.04.2018 / 15:49
1
answer

Get id of a form created previously to relate it to another LARAVEL 5.5 table

I write here because I have this doubt, maybe it is silly but I have not managed to solve it .. I have two related tables REVISION and RISKS , the relationship is 1 review has many risks , and 1 risk belongs to 1 revision , I already mad...
asked by 29.06.2018 / 13:52
0
answers

Implement the halower / vue-tree library in laravel 5.6 [closed]

I am trying to use the following library link this uses jsx, complete all the steps of configuration but it shows me rendering error     
asked by 27.04.2018 / 22:27
0
answers

Create a global variable in laravel 5.5

I would like to create a global variable in laravel to be able to use it in controllers as in views; I would like to do this without having to use Session or Cache . Is there any colleagues mechanism? Investigating I realize that in...
asked by 16.04.2018 / 16:28
0
answers

logout method in laravel 5

I'm trying to apply a logout in my laravel 5.5 project with this method: Route::get('/logout', function () { Auth::logout(); return redirect('login'); })->name('auth_logout'); But when I click on the back of the br...
asked by 11.04.2018 / 16:03
0
answers

upload image to laravel ajax

I hope you can support me with uploading an image to laravel 5.6 attached. 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], 'archivosimg' => [ 'driver' =&g...
asked by 06.04.2018 / 19:23
0
answers

how to upload r files (images) with angle 5 and a backend in laravel 5

I am developing a sales system with angular 5 in the forntend and the backend with angular 5, and I need to send to the backend an image that I upload with angular 5 but apparently nothing comes in the code. This is my productComponet where I...
asked by 02.05.2018 / 16:55
1
answer

View a PDF in Laravel

I want to see a PDF stored by a client, without downloading it, just see it. Previously used code in PHP . <?php header('Content-Description: File Transfer'); header("Content-type: application/pdf"); readfile('file...
asked by 03.03.2018 / 14:45
2
answers

Pivot table values with laravel

I am using laravel 5.5, I have a Member model and a Team model, I made the belongsToMany relationship correctly. The problem is that in the pivot table of that relationship there are several data that I need to access, for example the fields sea...
asked by 05.03.2018 / 00:58