I'm using a template for the menu and footer to be duplicated on all pages. I put if in the footer for when it is a certain route he change the content, but that is not what is happening, he is interpreting each and every route as "home"....
I'm having trouble with a sql in the laravel where I make a join, but the error happens even in where , where deleted_at is equal to null , remembering deleted_at is timestamp . In the database is running sql, bu...
I do not know how I do with my Seeds, I have 2 entities: Category and Subcategory.
I want to be able to run seeds and be able to register my Categories
and after my Subcategories, only Subcategory has a relationship with Category: needs id...
Is it possible inside a Controller, to return a javascript action and proceed with the controller script?
Example:
Call to Login page:
<li><a href="javascript:" link="{{ route('login') }}" class="popup">logar</a></...
I'm trying to group to bring totals into my query that is in mysql
SELECT COUNT(*) as total
,e.descricao
FROM pedido_cliente p
INNER JOIN estabelecimentos e on e.id = p.estabelecimento_id
GROUP BY p.estabelecimento_id,descricao...
I have 2 city and state tables I own the parana state and would like to know how to return all cities related to Parana state in a simple way without having to make a loop of repetition
Type
$estados = App/Estado::all();
$cidades = App/Cida...
When I used Python's Django, I was surprised by the inspectdb command, which is able to generate the models based on an existing database.
In Laravel, we have the migrations to be able to work with the database, and I find a clean and...
I would like to say that I researched the forum and found some similar questions, but no answer solved my problem. Follow my question:
Doubt:
I'm trying to delete a notification by ajax, but the error is occurring. The variables project_...
I'm working with a database already populated. It has four tables ( Aluno , clinico , Familia and TipoCompulsao ), where Aluno receives foreignkey from the three tables;
Model student
class Aluno extends...
I have the following regular expression:
regex:/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/
I can validate for this, but not for repeated numbers.
I want to apply within this regex, a form that does not accept repeated values, for example:...