Posts by Ian Rodrigues • 327 points
11 posts
-
2
votes1
answer407
viewsQ: Multi-table heritage in Laravel
I have an entity Resource, which in turn has several implementations, for example, VideoResource and MarkdownResource. Resource has several properties shared, the other two examples in turn have…
-
1
votes0
answers29
viewsQ: Route to Many-to-Many relationship
I have a related REST API question, if anyone can help, thank you very much. I have two entities, Product and Store, which has a Many-to-Many relationship between them. A Product may be available in…
-
4
votes3
answers2910
viewsA: Routes accessible only to users logged in to Laravel?
For this, you will use Middleware. Middleware Middleware provides a mechanism for filtering HTTP requests on its application. For example, Laravel includes a middleware that checks if the user of…
-
2
votes2
answers481
viewsA: Push() does not work in Vuejs?
In that case the this is not referencing $vm. You can do so: atualizar () { var self = this; axios({ method: 'get', url: '/server/inbox' }).then(function (response) { console.log(response.data) for…
-
1
votes3
answers1667
viewsA: Show input when user selects option
If you are looking to give reactivity to your application, I advise you to learn about Vue.JS, see an example of what you are looking for: Vue.component('my-form', { data: function () { return {…
-
1
votes1
answer693
viewsA: Notifications/Mail com Laravel
To save the notification to the database, in the return array of your method via must have the item database. For example: /** * Get the notification's delivery channels. * * @param mixed…
-
1
votes1
answer46
viewsA: Larval Relationsships 5.4
I couldn’t quite understand the question, but I believe your code should be like this: Users.php <?php namespace App; // ignorado... class User extends Authenticatable { // ignorado... public…
-
1
votes1
answer196
viewsA: Concatenate multiple Sass/css files into one final css
Instead of concatenating using the webpack.mix.js, you could do so, in your file assets/css/app.scss: @import "app.css" // supondo que o arquivo app.css está no mesmo nível que app.scss @import…
-
0
votes2
answers1235
viewsA: Edit table elements
I can’t believe jQuery is the best way out of this kind of thing. It seems to me that you are trying to give a certain "reactivity" to your application and in this case I advise you to leave for the…
-
1
votes1
answer639
viewsA: Is there a nomenclature standard for table index names in Mysql?
To illustrate, say you have a table posts which has as a foreign key the id of a user in the field user_id. Your foreign key would be: posts_user_id_foreign // [table]_[columns]_[indextype] You can…
-
2
votes3
answers1560
viewsA: Insertion of the letter "e" in type number
One way to do it would be like this, in your HTML: <input type="number" onkeydown="return FilterInput(event)" onpaste="handlePaste(event)"> And in your Javascript: <script> function…
htmlanswered Ian Rodrigues 327