I'm working on Laravel and I have 3 tables (users, administrations and real estate).
I would like to know, what would be the best way to relate (associate) users and properties belonging to the same administration?
What would be the best w...
I'm trying to list an association table, in my case it's the class table, which associates officials (teachers) and students.
I gave a good researched before posting this question but I could not solve the problem.
Role model
<?ph...
I'm trying to load the data dynamically from a mySql database, into a carousel bootstrap, with laravel 5.3. The following is happening: The data is loaded, but the carousel does not work, that is, it stays static, with one image over the other....
I have a form with 60 input textbox with name numero [], of these 60 numbers I can only select a quantity x (quantity can be variable); how do I do when the user unchecks the checkbox the number is removed from the array?
var i = 0,
sel...
I'm trying to relate one field to another using migrations this way:
Butwhendoingtheforeignkeyinmigrationsthisway:MigrationPermission:Schema::create('permissions',function(Blueprint$table){$table->increments('id');$table->index('use...
How can I make a query below with mysql in laravel:
SELECT
gps.positions.id,
gps.positions.protocol,
gps.positions.deviceid,
gps.positions.servertime,
gps.positions.devicetime,
gps.positions.fixtime,
gps.positions.v...
You are returning the following error from my assignment:
$user->attachRole(12);
Note : If I use this way, I have parameterized the normal functional defender model
$user->roles()->attach(12);
What can it be? If...
Next, my método is working correctly, but I would like to do a validation if I can not succeed, letting the user know that I could not adicionarConta() have any way I can do this? Webservice method
addConta(conta: ContaInter...
Problem:
I have an application with auto installer. When the user sets up their account, I would like to manually register it in the oauth_clients table, with a secret only from it.
If I do the manual procedure through the Laravel Passport...
Good evening, I'm not the smartest guy on linux. I use Laravel and have always created projects with the command
$ composer create-project -prefer-dist laravel / laravel project-name
But today I decided to follow a tutorial on the web...