forked from laravel/telescope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repackaged laravel#1087 for 4.x (Add a new "Clear Entries" button)
- Loading branch information
1 parent
4f613b1
commit d5bfb2d
Showing
4 changed files
with
35 additions
and
0 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
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
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,20 @@ | ||
<?php | ||
|
||
namespace Laravel\Telescope\Http\Controllers; | ||
|
||
use Illuminate\Routing\Controller; | ||
use Laravel\Telescope\Contracts\ClearableRepository; | ||
|
||
class EntriesController extends Controller | ||
{ | ||
/** | ||
* Delete all of the entries from storage. | ||
* | ||
* @param \Laravel\Telescope\Contracts\ClearableRepository $storage | ||
* @return void | ||
*/ | ||
public function destroy(ClearableRepository $storage) | ||
{ | ||
$storage->clear(); | ||
} | ||
} |
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