generated from grosv/laravel-package-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
999037a
commit 07110a5
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Grosv\EloquentSheets; | ||
|
||
use Illuminate\Support\Facades\File; | ||
|
||
class ForgetSheet | ||
{ | ||
public function execute($id) | ||
{ | ||
File::delete(config('sushi.cache-path').'/'.$id.'.sqlite'); | ||
|
||
return response()->noContent(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\File; | ||
use Illuminate\Support\Facades\Request; | ||
use Grosv\EloquentSheets\ForgetSheet; | ||
use Illuminate\Support\Facades\Route; | ||
|
||
Route::get('/eloquent_sheets_forget/{id?}', function (Request $request, $id) { | ||
File::delete(config('sushi.cache-path').'/'.$id.'.sqlite'); | ||
|
||
return response()->noContent(); | ||
}); | ||
Route::get('/eloquent_sheets_forget/{id?}', [ForgetSheet::class, 'execute']); |