Trying to make the user registration generates the error "Class Blog \ Http \ Requests does not exist"
Here my UserController
<?php
namespace Blog\Http\Controllers;
use Blog\Http\Requests;
use Blog\Http\Requests\CrearUsuarioRequest...
I am implementing a laravel project in IIS 8 Windows Server 2012. But I have problems for the routes to work. I can see the index but when I want to access a view it returns error 404. Has anyone had any experience doing this?
I want to make a migration to MySQL, when I put the php artisan migrate instruction in my command line, I get the following error in console:
In Connection.php line 664:
...
I'm trying to understand how to create queries with subqueries in Query Builder. The problem is that the official documentation is extremely brief and not very explanatory in some specific points. In particular, the methods joinSub() and...
I'm trying to save an image using the Storage of Laravel
Storage::disk('avatars')->put($avatarName, $request->file('avatar'))
$avatarName = avatar'.time().'.'.$request->file('avatar')->getClientOriginalExtension();
The...
Create a factory in which I need to store an image.
The factory is:
$factory->define(\App\FinDra\Entities\Surface\SurfaceModel::class, function (Faker $faker) {
return [
'surface' => str_random(5),
'color' => '#...
I'm stuck in a filter:
These are my tables:
My model for Movement
public function factura() {
return $this->belongsTo('App\Factura');
}
public function cuenta() {
return $this->belongsTo('App\Cuenta');
}
public fu...
Hi, I'm doing an application where users can only have one session open, no matter what device they are on.
Example: a user logs into a web browser.
After 1 minute he decides to change to his cell phone.
In this case, the web browser sessi...
I have a module to edit, which works very well, I show the controller and the view below.
public function edit(Request $request, $id)
{
$request->user()->authorizeRoles(['admin','referido']);...
In my Deegre model I have a method fullName () that returns string
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Deegre extends Model
{
public function fullName(){
$level = [
"1" => "Primer ",...