ErikRobles

ErikRobles

Member Since 1 Year Ago

Experience Points
1,760
Total
Experience

3,240 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
13
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
1,760 XP
Sep
19
22 hours ago
Activity icon

Replied to Unclear On How To Delete Single Image From Post From Multiple Images

Hello and thanks for the response @jlrdw Should I create a separate function for this? I'm unclear as my app doesn't like my new function in the same controller.

Activity icon

Started a new Conversation Unclear On How To Delete Single Image From Post From Multiple Images

Using Laravel 7, I can upload, add and delete all images from a task (post if it were a blog) but I am unclear on how to delete a single image from a task view (single post view). I am using resource controller for tasks but I assume I will need a different function. I created one in the same TasksController and about the resource controller, I created a delete route for it. My application complains that I am trying to get a property 'task_name' of non object when I click the single image delete button. I am not sure how to go about this or if I need to create an Image Controller (of which I am not using at the moment). I will show what I am attempting and maybe, you can tell me if I am off base or share some recommendations. So, to start off with, here is my web.php:

<?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', '[email protected]')->name('home');

Route::get('/users', '[email protected]');
Route::delete('delete-image', '[email protected]')->name('delete-image');

Route::resource('tasks', 'TasksController');
Route::resource('users', 'UsersController');

My TasksController showing both my destroy method as well as my newly created delete method:

public function destroy($id)
    {
        $task = Task::with('images')->findOrFail($id);

        foreach ($task->images as $image) {
            Storage::disk('public')->delete('upload/' . $image->name);
        }

        $task->images()->delete();
        $task->delete();
        return redirect('home')->with('success', 'Task Deleted');
    }

    public function delete($id)
    {
        //
        $task = Task::with('images')->findOrFail($id);
        $task->images()->delete();

        $images = Image::find($id);
        Storage::disk('public')->delete('upload/' . $images->name);
        $images->name()->delete();
        return redirect('home')->with('success', 'Task Deleted');
    }

In my show.blade.php which would act as a single post view:

<div class="col-md-12">
                <h5>Images</h5>
                <hr />
                  <div class="row">
                      @if($task->images->count()>0)

                          @for($i=0; $i < count($images = $task->images()->get()); $i++)
                          <div class="col-lg-4 col-md-6 col-sm-12">
                            <a href="delete-image" class="badge badge-danger p-2 mb-3">Delete</a><br>
                            <a href="#" class="thumbnail" data-toggle="modal" data-target="#lightbox"><img class="w-50 mb-2" src="/storage/upload/{{ $images[$i]['name'] }}" alt=""></a>

                        </div>

                          @endfor
                          @else
                              <p>No images found</p>
                      @endif
                  </div>
                <br />
              </div>

In my Image.php Model my relationships are as follows:

public function task()
    {
        return $this->belongsTo('App\Task', 'task_id');
        // return $this->belongsTo(Task::class);
    }

    public static function boot()
    {
        parent::boot();
        self::deleting(function ($images) {

            // File::delete(Storage::path($images['name']));
            File::delete(str_replace('\', '/', storage_path('app/public/upload/' . $images->name)));
        });
    }

and in my Task.php Model:

public function images()
    {
        // return $this->hasMany('App\Image');
        return $this->hasMany(Image::class);
    }

    public static function boot()
    {
        parent::boot();
        self::deleting(function ($task) {
            foreach ($task->image ?: [] as $image) {
                $image->delete();
            }
        });
    }

If I missed anything, please let me know so I can modify my question. I really appreciate the help on this as I am a week behind. Thank you in advance.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Your answer helped set me down the path with renaming my images relationship. And @newbie360 got me the rest of the way. Thank you to both. I wish there were a way to mark 2 answers as the best.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Bloody well done. Thank you so much. 1 week lost on this issue. Many Thanks to you, @snapey, @jlrdw for helping me out with this. I have learned so freaking much this week so I guess it wasn't a total loss. Thanks a million.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

I wish it were true. It works for the db and on the screen but not the disc. no errors. It just doesn't touch the disk.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Hello @NEWBIE360. Thank you for your help. I am getting closer. When I run a dd on the storage path plus $image->name I get

"C:\laragon\www\taskapp\storage\app/public/upload/1600536086-AICerikRobles4.png"

Which is one of the file names. I am still missing something. I employed the changes you suggested. Can it be that the / and the \ in the path name are messing things up? Here is my new destroy method:

 public function destroy($id)
    {
        // $task = Task::findOrFail($id);
        $task = Task::with('images')->findOrFail($id);

        // $images = Image::find($id);

        // $images = $task->images($id)->get();

        foreach ($task->images as $image) {
            dd(storage_path('app/public/upload/' . $image->name));
            Storage::delete(storage_path('app/public/upload/' . $image->name));
        }

        $task->images()->delete();
        $task->delete();
        return redirect('home')->with('success', 'Task Deleted');
    }

I should point out that I have two or three images in this task (post if it were a blog).

Sep
18
1 day ago
Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Good Idea. I will dig deeper. Thank you for your patience. Both you and @jlrdw

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

It comes back as null and when I run dd($task->image) it gives me back the array. so my question is, how do I access that in my Controller to delete all the images that belong to that particular task?

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Thank you @jlrdw. It got rid of the error and I am still able to delete them from the db but the following code does not delete them from the disk. How frustrating. What am I possibly missing. Any help greatly appreciated.

 public function destroy($id)
    {
        $task = Task::findOrFail($id);
        $images = Image::find($id);

        foreach ((array) $images as $image) {
            File::delete('storage/app/public/upload/', $image->name);
        }


        $task->delete();
        return redirect('home')->with('success', 'Task Deleted');
    }
Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

OK. I got the following after running some tests:

>>> File::delete('storage/app/public/upload/'.$image->name);
=> true

resulted in true and the file was deleted from my disk. My next dilemma is how to delete them all as most of my tasks(posts) have 3 or more images. If I try the same thing in my Controller, I get Property [name] does not exist on this collection instance

Sep
17
2 days ago
Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

So, I have changed the storage folder and it is now showing up in the two locations like one would expect. In my main app public/storage/upload I have all the uploaded files that are also in the db as well as in storage/app/public/upload that the symlink refers to contain all the same files. In my TasksController, I changed the if statement to the following:

 if ($request->hasFile('images')) {
            $files = $request->file('images');
            foreach ($files ?: [] as $file) {
                $name = time() . '-' . $file->getClientOriginalName();
                $name = str_replace(' ', '-', $name);
                $file->storeAs('public/upload', $name);
                $task->image()->create(['name' => $name]);
                $images = new Image;
                $images->name = $name;
            }

This is what made the folder structure better as per @Snapey 's suggestion. I still am having a problem in my delete call as I am not sure how to create that method. If I use $task->image I don't get an error and the db gets deleted but the disk does not. If I use $image->name I get an error:

Property [name] does not exist on this collection instance.

Here is my destroy method (which I am sure is all messed up)

public function destroy($id)
    {
        $task = Task::findOrFail($id);
        $image = Image::all();
        $name = $task->image;

        File::delete('public/upload', $name);


        $task->delete();
        return redirect('home')->with('success', 'Task Deleted');
    }

Any help on this would be greatly appreciated. Thank you.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Yes, I am using a symlink but what I find strange is that I don't see task-images in the storage/app/public folder. I would assume as I have seen in other projects that there would be those files there and in my public folder as well. Maybe I am wrong.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

In my case they are not sensitive images so I don't really think it matters at this point weather they are accessible to the public or not.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Thank you @Snapey. This is strange as I am looking in the public folder and in that is the task-images folder and in that I have 1600371770-egypt2.jpg which corresponds to id 74 name: "1600371770-egypt2.jpg", which is in my db. I am scratching my head on this one. Let me dig a bit deeper and comment tomorrow if I have luck or not. Thank you @Snapey. If you think of anything in the meantime, I certainly do appreciate it.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Here is the new result failing but at least I got the right id number:

>>> $image = Image::find(74);
=> App\Image {#4121
     id: 74,
     name: "1600371770-egypt2.jpg",
     task_id: 24,
     created_at: "2020-09-17 19:42:50",       
     updated_at: "2020-09-17 19:42:50",       
   }
>>> Storage::delete('task-images/'.$image->name);
=> false
>>>

Could it be that I am trying to delete an array of objects at the same time but unclear on how to go about it?

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Here is what I get after the first Tinker test:

$ php artisan tinker
Psy Shell v0.10.4 (PHP 7.3.0 — cli) by Justin 
Hileman
>>> $image = Image::find(1);
[!] Aliasing 'Image' to 'App\Image' for this Tinker session.
=> null
>>> Storage::delete('task-images/' . $image->name);
PHP Notice:  Trying to get property 'name' of 
non-object in Psy Shell code on line 1        
=> false
>>>

So, I obviously have something wrong or am clueless on how to access my disk. the db gets deleted just fine but the storage disk remains intact.

If I run $image = Image::all('name'); and run a dd($image); I get:

Illuminate\Database\Eloquent\Collection {#1217 ▼
  #items: array:7 [▼
    0 => App\Image {#1218 ▼
      #fillable: array:2 [▶]
      #uploads: "/task-images/"
      #connection: "mysql"
      #table: "images"
      #primaryKey: "id"
      #keyType: "int"
      +incrementing: true
      #with: []
      #withCount: []
      #perPage: 15
      +exists: true
      +wasRecentlyCreated: false
      #attributes: array:1 [▼
        "name" => "1600371770-egypt2.jpg"
      ]
      #original: array:1 [▶]
      #changes: []
      #casts: []
      #classCastCache: []
      #dates: []
      #dateFormat: null
      #appends: []
      #dispatchesEvents: []
      #observables: []
      #relations: []
      #touches: []
      +timestamps: true
      #hidden: []
      #visible: []
      #guarded: array:1 [▶]
    }
    1 => App\Image {#1219 ▶}
    2 => App\Image {#1220 ▶}
    3 => App\Image {#1221 ▶}
    4 => App\Image {#1222 ▶}
    5 => App\Image {#1223 ▶}
    6 => App\Image {#1224 ▶}
  ]
}
Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

Thank you @Snapey . I will give that a shot and report back. Thank you @jlrdw , I will make a back up first.

Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

I am using, I belive the foreign key of task_id in the image model to relate to the task model:

 Schema::create('images', function (Blueprint $table) {
            $table->id();
            $table->string('name')->default('image.png')->nullable();
            $table->unsignedBigInteger('task_id');
            // $table->string('image_path');
            $table->timestamps();
        });
Activity icon

Replied to Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

thank you @jlrdw and @sinnbeck. I have tried with both th unlink option and changing the delete option you guys provided. No joy yet. I tried using $image->name but that threw an error so I tried with $task->image and ran a dd on that request. This is what I got in return: "task-images/[{"id":64,"name":"1600350578-newEgypt.jpg","task_id":22,"created_at":"2020-09-17T13:49:38.000000Z","updated_at":"2020-09-17T13:49:38.000000Z"},{"id":65,"name":"1600350578-scifi1.jpg","task_id":22,"created_at":"2020-09-17T13:49:38.000000Z","updated_at":"2020-09-17T13:49:38.000000Z"},{"id":66,"name":"1600350578-scifi1.webp","task_id":22,"created_at":"2020-09-17T13:49:38.000000Z","updated_at":"2020-09-17T13:49:38.000000Z"}] ◀"

Activity icon

Started a new Conversation Laravel 7 Image Not Deleting From Disk But Is Deleted From Db

I am able to successfully add multiple images for the task (post if it were a blog) and delete the task. The task is successfully deleted from the db as well as its subsequent images. However, in the disc (by the way, I am working local at the moment) the files remain untouched. I am unsure how to handle this request as I am new to Laravel. Any help would be greatly appreciated. Here is what I have in my various files. TaskController.php showing both my store and delete functions:

public function store(Request $request)
    {
        $this->validate($request, [
            'task_name' => 'required',
            'task_description' => 'required',
        ]);

        // Create Task
        $user = Auth::user();
        $task = new Task();
        $data = $request->all();
        $task->user_id = $user->id;
        $task = $user->task()->create($data);
        if ($request->hasFile('images')) {
            $files = $request->file('images');
            foreach ($files ?: [] as $file) {
                $name = time() . '-' . $file->getClientOriginalName();
                $name = str_replace(' ', '-', $name);
                $file->move('task-images', $name);
                $task->image()->create(['name' => $name]);
                $images = new Image;
                $images->name = $name;
            }
        }
        $task->task_name = $request->input('task_name');
        $task->task_description = $request->input('task_description');
        $task->task_priority = $request->input('task_priority');
        $task->task_assigned_by = $request->input('task_assigned_by');
        $task->task_assigned_to = $request->input('task_assigned_to');
        $task->task_to_be_completed_date = $request->input('task_to_be_completed_date');
        $task->task_notes = $request->input('task_notes');
        $task->task_status = $request->task_status;
        $task->save();



        return redirect('/home')->with('success', 'Task Created');
    }

public function destroy($id)
    {
        $task = Task::findOrFail($id);
        $task->delete();
        return redirect('home')->with('success', 'Task Deleted');
    }

Where I am attempting to delete is in my show.blade.php (just the delete form)

<form style="display: inline;" action="/tasks/{{ $task->id }}" method="POST" class="">
              @csrf
              @method('DELETE')
            <button type="submit" class="btn btn-danger btn-sm ml-1 mr-1">
              <i class="fa fa-trash"></i> Delete
            </button>
 </form>

In my web.php, I am using a resource controller for TasksController.php.

In my Image.php Model:

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use App\Task;

class Image extends Model
{
    protected $fillable = [
        'task_id',
        'name',
    ];

    protected $uploads = '/task-images/';

    public function getFileAttribute($image)
    {
        return $this->uploads . $image;
    }


    public function task()
    {
        // return $this->belongsTo('App\Task', 'task_id');
        return $this->belongsTo(Task::class);
    }

    public static function boot()
    {
        parent::boot();
        self::deleting(function ($image) {
            Storage::delete(Storage::path($image->name));
        });
    }
}

and my Task.php Model:

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Image;
use Illuminate\Support\Facades\Storage;


class Task extends Model
{
    protected $fillable = [
        'task_name', 'task_priority', 'task_assigned_to', 'task_assigned_by', 'task_description', 'task_to_be_completed_date', 'task_status',
        'task_notes'
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function image()
    {
        // return $this->hasMany('App\Image');
        return $this->hasMany(Image::class);
    }

    public static function boot()
    {
        parent::boot();
        self::deleting(function ($task) {
            foreach ($task->image ?: [] as $image) {
                $image->delete();
            }
        });
    }
}

Finally, in my filesystem.php, for the disk section, I have:

'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

If I have missed something, please let me know and I will edit my question. Thank you in advance for your help.

Sep
08
1 week ago
Activity icon

Replied to Uploading Multiple Files Not Passing Foreach

Hello @snapey. I am getting the same issue. I ran the dd($uploadedFiles) which is the name I am using in my case and my dd came back null. Which I would expect since this is the first image. I am using Laravel 7. Anything change since the 5.4 Laravel version that would point me in the right direction? Thanks.

Aug
31
2 weeks ago
Activity icon

Replied to Unable To Delete Record As Authenticated User (vendor)

Hello Loyd and Snapey. Thank you for your reply. I figured out the problem and I appologize for not posting my web.php. In that, I had not correctly wrapped my route groups. I had my vendor outside of the vendor group thus anything it did that had any impact on the admin was denied. Here is my web.php now that I fixed it.

Route::get('/', function () {
    return view('frontend.index');
  });


Auth::routes();

Route::group(['middleware' => ['auth', 'isAdmin']], function () {
    Route::get('/dashboard', function () {
        return view('admin.dashboard');
    });

    // Usuarios
    Route::get('registered-user', 'Admin\[email protected]');
    Route::delete('/user-delete/{id}', 'Admin\[email protected]');
    Route::get('role-edit/{id}', 'Admin\[email protected]');
    Route::put('role-update/{id}', 'Admin\[email protected]');
    // Empresas
    Route::get('registered-empresa', 'Admin\[email protected]');
    Route::post('save-empresa', 'Admin\[email protected]');
    Route::get('/edit-empresa/{id}', 'Admin\[email protected]');
    Route::put('/empresa-update/{id}', 'Admin\[email protected]');
    Route::delete('/delete-empresa/{id}', 'Admin\[email protected]');
    // Empleados
    Route::get('registered-empleado', 'Admin\[email protected]');
    Route::get('/edit-empleado/{id}', 'Admin\[email protected]');
    Route::put('/empleado-update/{id}', 'Admin\[email protected]');
    Route::post('save-empleado', 'Admin\[email protected]');
    Route::delete('/delete-empleado/{id}', 'Admin\[email protected]');
  });

Route::group(['middleware' => ['auth', 'isVendor']], function () {
    Route::get('/vendor-dashboard', function () {
        return view('vendor.dashboard');
    });

    Route::resource('vendor-empresas', 'vendorEmpresaController');
    Route::delete('/vendor-empresas/{vendor_empresa}', '[email protected]');

    Route::resource('vendor-empleados', 'vendorEmpleadoController');
    Route::get('vendor-profile', 'Vendor\[email protected]');
    Route::post('vendor-profile-update', 'Vendor\[email protected]');
  });

Route::group(['middleware' => ['auth', 'isUser']], function () {

    Route::get('/home', '[email protected]')->name('home');
    Route::get('my-profile', 'Frontend\[email protected]');
    Route::post('my-profile-update', 'Frontend\[email protected]');
  });

Thank you for your replies.

Aug
24
3 weeks ago
Activity icon

Started a new Conversation Unable To Delete Record As Authenticated User (vendor)

I have a role_as vendor and want to delete one of the authenticated user's records. I get redirected to the admin home (which I am not authorized to view which is correct) and the record does not get deleted. I have tried Policies and middleware but unable to get this to work. In my destroy function, I have:

public function destroy($id)
    {

        $empresa = Empresa::find($id);
        $this->authorizeResource(Empresa::class, 'delete', $empresa);
        if ($empresa != null) {
            $empresa->delete();
            return redirect('/vendor-empresas')->with('status', 'Empresa Borrado Exitosamente.');
            // return redirect()->to('/vendor-empresas')->with('status', 'Empresa Borrado Exitosamente.');
        } else {
            return redirect('/vendor-empresas')->with('status', 'ID Equivocado! La empresa no fue borrado.');
        }
    }

My index.blade.php delete form:

 <form action="vendor-empresas/{vendor_empresa}" method="POST" id="deleteForm">
        {{ csrf_field() }}
        @method('delete')
      <div class="modal-body mx-3">
        <input type="hidden" name="_method" value="DELETE">
        <div class="text-center">
            <i class="fas fa-exclamation-triangle mb-4" style="color: #ffc107; font-size: 32px;"></i>
        </div>
            <h3 class="text-center text-uppercase">¿Estás Seguro/a?
        </h3>
      </div>
      <div class="modal-footer d-flex justify-content-center">
        <button class="btn btn-primary" data-dismiss="modal">Cancelar</button>
        <button type="submit" class="btn btn-danger">Sí, Borralo!</button>

      </div>
    </form>

AuthServiceProvider:

protected $policies = [
        'App\Empresa' => 'App\Policies\EmpresaPolicy',
    ];

Admin Middleware:

public function handle($request, Closure $next)
    {
        if (Auth::user()->role_as == 'admin') {
            return $next($request);
        } else {
            return redirect('/home')->with('status', 'You are not permitted to access the  Admin dashboard.');
        }
    }

the VendorMiddleware

 public function handle($request, Closure $next)
    {
        if (Auth::user()->role_as == 'vendor') {
            if (Auth::check() && Auth::user()->isBanned) {
                $banned = Auth::user()->isBanned == "1";
                Auth::logout();

                if ($banned == 1) {
                    $message = 'Your account has been Banned. Please contact the administrator.';
                }
                return redirect()->route('login')->with('status', $message)->withErrors(['email' => 'Your account has been Banned. Please contact the administrator.']);
            }
            return $next($request);
        } else {
            return redirect('/home')->with('status', 'You are not permitted to access the vendor dashboard, OK?');
        }
    }
}

I am able to view, create and edit but not delete. I am unsure what I am doing wrong as I am new to Laravel. Thank you in advance for any help you can provide.

Jul
12
2 months ago
Activity icon

Replied to Laravel Nova As Backend Catch All Routes

I would like to know this as well. Not a lot of Nova People out there yet.

Activity icon

Replied to Using Laravel Nova As Frontend

I'd like to know as well

Jul
08
2 months ago
Activity icon

Started a new Conversation Logout And Login Not Working After Routing Nova To Path=> '/'

I have access to the logout button but it does nothing but spin waiting for my localhost to respond. I changed the path to '/' in nova.php and that is what is happening. If I go back to path => '/nova' then I get the login page with the same thing happening. localhost is waiting ..... Please let me know what portion of the code you would like to see if you have any clues where this error might be coming from. Thank you.

Edit: Changed path => '', as an empty string and that fixed the logout. Now what remains is the login. That is not working still.