I want to send a parameter in my route from my controller
controller:
public function guardarArticulo(Request $request){
$detalle_modelo = new DetalleModelo();
$detalle_modelo->idAutos = $request->idAutos;
$d...
In Laravel 5, when you create a model with resource controller and migration ( php artisan make:model Environment -mr ) you can notice that the methods are automatically generated in the controller.
Now, if you look at each method creat...
I am working with laravel and I am in the roles and permissions stage of my application.
In my table of users, add the one field called role.
If role = 1 then he is an administrator
if role = 2 then it is a normal user.
I would like...
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Categoria extends Model
{
protected $fillable=["descripcion","categoria_id"];
public function recurso_categorias(){
return $this->hasMany('App\RecursoCategoria');
}...
I have a problem sending a query in a select it marks me the error htmlentities () expects parameter 1 to be string, object given
My Controller is this:
$works = ContractWork::get();
$year = DB:: table('contract_works')...
I have an application in laravel 5.1 with a composite key, most of the drivers worked fine, the problem is when I want to login it does not allow me to evaluate internally and does not allow having an array as the primary key ... there is some w...
I have a project done in laravel 5.2 with xampp on my local machine. When uploading it to a hosting, when I try to access the page, it returns an error that says it can not find the file (No such file or directory). From what I see in the messag...
I have a destroy method in my controller and I call it from a view to delete a record, but after confirming that I want to delete, the window remains blank and does not erase anything at all and does not redirect me to another view.
The drive...
Hello, I am trying to validate the fields of the form that I created with the validate function of laravel, I pass valid data to it and it does not validate.
$request->validate([
'player' => 'alpha_dash',
'spec.*...
I have a question regarding the sessions that are due in Laravel, as they will know in the file session.php there is a variable called lifetime that there is configured the time in which you want a session to be alive.
The issue that I do not...