Questions tagged as 'laravel'

1
answer

Difficulty with belongingto Laravel 5.6

Good evening. I'm doing a project with Laravel and I'm having a difficult relationship Could you help me? I have two entities in my bank that are Student and Situation. Student has these attributes: id, name, string, email. Situation has t...
asked by 13.09.2018 / 01:31
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
0
answers

Every time I click to go to another page, it asks for the login again (LARAVEL 5.6)

Good afternoon guys Every time I go to another page, my application asks to re-login Follow the route Route::get('/', function () { return view('welcome'); }); Auth::routes(); Route::group(['prefix'=>'admin','middleware'=>'...
asked by 17.09.2018 / 20:09
0
answers

Send Notification in a queue with dynamically generated attachments

I have a notification that implements the "ShouldQueue" interface and it gets the path to a dynamically generated PDF, however I can not attach this PDF attachment, it attaches a corrupted PDF with a very small size. Alternatively, I tried to...
asked by 05.09.2018 / 11:04
1
answer

Practical Example of Working with Eloquent in Laravel 5.6 (Relationships)

I have an entity that is employees and 3 other tables that are Sector , Position and Department and the relationship is 1 for N (that is, the primary keys of these 3 tables must be foreign in the employee table). In my View in...
asked by 16.09.2018 / 04:38
0
answers

hasMany does not work correctly

Good evening !! I'm trying to launch data relationships (groups and networks) but it does not work ... the group model looks like this: function Redes(){ return $this->hasMany('App\rede','grupo_id','id'); } In the network model it l...
asked by 07.09.2018 / 00:48
0
answers

Create table validation many to many in Laravel

I need to do a validation so that the database does not write repeated data to a table, which is an intermediate table of a many to many relationship, not having an id. Below is the code. public function invite(Event $event) { request()-&g...
asked by 30.08.2018 / 20:34
0
answers

Pusher Error - Uncaught ReferenceError: Pusher is not defined

Good morning. I followed this tutorial: link But I get the following error in the browser console: Uncaught ReferenceError: Pusher is not defined at PusherConnector.connect (VM562 app.js:36739) at PusherConnector.Connector (VM562 app.j...
asked by 03.09.2018 / 15:19
0
answers

How to implement multi-level menu in Laravel + Database?

I'm having trouble implementing a multi-level menu with a database in Laravel. I even managed to print the menu for the first and second level, however, I would like to have any menu level without having to fiddle with the code for each new leve...
asked by 29.08.2018 / 21:55
0
answers

NotFoundHttpException error while copying site Laravel

I created a website on a machine and everything works fine. I copied the folder to another computer, installed Composer, typed the commands composer update , php artisan migrate and php artisan app:name farmacia . But when...
asked by 03.09.2018 / 14:02