Posts by Ygor Dutra • 63 points
5 posts
-
3
votes0
answers789
viewsQ: Regular expression in Laravel
I’m not very good at regex but using the site https://regex101.com I was able to generate an expression that accepts: Do not accept special characters Can have up to 5 words separated by whitespace…
-
0
votes1
answer47
viewsQ: add select field dynamically (Laravel project)
I am creating a form of a repository and I have several fields like this modality. What I don’t know how to do is create a function so that when a person clicks on the + button next to the select,…
-
1
votes3
answers1674
viewsQ: What is the best way to store videos, audios, images, documents in a bank?
I want to create a repository system where people can store videos, audios, pdfs, images etc. I will probably use PGSQL and want to know what is the best strategy for storing this data that can be…
-
1
votes0
answers49
viewsQ: query with Many-to-Many polymorphic Laravel?
I have a polymorphic m-m relationship in my bank where: class(id, name) student(id, name) Lesson(id, name) classeable(classe_id, classeable_id, classeable_type) a class has several Students and…
-
0
votes1
answer131
viewsQ: Migrate: Is it possible to change a table to add a column and already pass some value to it (excluding the nullable() option)?
for example I have the student table (name, age); Then I create a Migration to add the genus (M/F) Schema::table('estudantes', function (Blueprint $table) {…