Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api integration 0.0.4 #126

Open
wants to merge 92 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
9e2e7ae
intial package install
simplyclc Apr 13, 2024
fe87998
api sancturm initial
simplyclc Apr 13, 2024
ca40c28
Api configuration 0.0.1
simplyclc Apr 14, 2024
105c388
Api update
simplyclc Apr 14, 2024
d605fba
Api update
simplyclc Apr 14, 2024
96565fe
Merge pull request #1 from Homechow-Dev/Api-configuration-0.0.1
simplyclc Apr 14, 2024
6ac3098
Merge pull request #2 from Homechow-Dev/Staging
simplyclc Apr 14, 2024
658347f
vite reconfig
simplyclc Apr 14, 2024
4bad2ed
update
simplyclc Apr 14, 2024
0ac5ce6
Merge pull request #3 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 14, 2024
62a6ff2
update
simplyclc Apr 16, 2024
0f69997
Merge pull request #4 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 16, 2024
c4864cf
Merge pull request #5 from Homechow-Dev/Staging
simplyclc Apr 16, 2024
8526b22
routs update
simplyclc Apr 16, 2024
52e1a87
Merge pull request #6 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 16, 2024
a868c13
update migrations
simplyclc Apr 16, 2024
71a5b7c
Merge pull request #7 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 16, 2024
7303ec5
migrations update
simplyclc Apr 16, 2024
e159b82
Merge pull request #8 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 16, 2024
1d34401
migration update
simplyclc Apr 16, 2024
4d125be
Merge pull request #9 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 16, 2024
4b976df
migration update foreign key
simplyclc Apr 16, 2024
6a75e38
Merge pull request #10 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 16, 2024
660c93a
refresh tonke addition
simplyclc Apr 16, 2024
8784655
Merge pull request #11 from Homechow-Dev/Api-integration-0.0.1
simplyclc Apr 16, 2024
a710c22
Stack update
simplyclc Apr 18, 2024
227b9f3
update
simplyclc Apr 26, 2024
ee4085c
Merge pull request #12 from Homechow-Dev/Api-integration-0.0.2b
Homechow-Dev Apr 26, 2024
21a7b85
remove intertia
simplyclc Apr 26, 2024
bd74dd5
Merge pull request #13 from Homechow-Dev/Api-integration-0.0.2b
Homechow-Dev Apr 26, 2024
45eac25
composer update
simplyclc Apr 26, 2024
c121efb
Merge pull request #14 from Homechow-Dev/Api-integration-0.0.2b
Homechow-Dev Apr 26, 2024
2c19c81
update
simplyclc Apr 26, 2024
83ede7c
Merge pull request #15 from Homechow-Dev/Api-integration-0.0.2b
Homechow-Dev Apr 26, 2024
c586079
web route update
simplyclc Apr 26, 2024
a80bf68
Merge pull request #16 from Homechow-Dev/Api-integration-0.0.2c
Homechow-Dev Apr 26, 2024
1093c5e
Additional payment with token
simplyclc Apr 26, 2024
91b039d
member payment
simplyclc May 2, 2024
acb909b
Merge pull request #17 from Homechow-Dev/Api-Stripe-wallet
Homechow-Dev May 2, 2024
af65e09
Account data
simplyclc May 6, 2024
3bfc75a
Merge pull request #18 from Homechow-Dev/Api-Stripe-wallet
Homechow-Dev May 6, 2024
dbcc527
Account update
simplyclc May 7, 2024
c9fe8d8
Merge pull request #19 from Homechow-Dev/Api-Stripe-wallet
Homechow-Dev May 7, 2024
7ab0be3
table update
simplyclc May 7, 2024
eb72906
Merge pull request #20 from Homechow-Dev/Api-Stripe-wallet
Homechow-Dev May 7, 2024
78ab64f
factory intial kiosk create
simplyclc May 7, 2024
77e7127
Merge pull request #21 from Homechow-Dev/Api-Stripe-wallet
Homechow-Dev May 7, 2024
e90712f
Kiosk table update
simplyclc May 7, 2024
94145eb
Merge pull request #22 from Homechow-Dev/Api-Stripe-wallet
Homechow-Dev May 7, 2024
5e79a73
Wallet integration
simplyclc May 7, 2024
506a808
Merge pull request #23 from Homechow-Dev/Api-Stripe-wallet
Homechow-Dev May 7, 2024
2425e7d
account update based on api
simplyclc May 8, 2024
8217308
Products api update
simplyclc May 14, 2024
b4d2ba7
Merge pull request #24 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev May 14, 2024
5fef349
update apit
simplyclc May 15, 2024
d01fad9
Merge pull request #25 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev May 15, 2024
d05d30f
temporary remove throttle
simplyclc May 17, 2024
dfb8da0
Merge pull request #26 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev May 17, 2024
80e577f
account update
simplyclc Jun 11, 2024
19b1d76
Merge pull request #27 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Jun 11, 2024
6dfec85
api fix
simplyclc Jun 12, 2024
038c196
Merge pull request #28 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Jun 12, 2024
b2f6eaa
api update
simplyclc Jun 12, 2024
a8733ef
Merge pull request #29 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Jun 12, 2024
0f243b7
Applications Save
simplyclc Jun 13, 2024
c285b1a
Merge pull request #30 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Jun 13, 2024
2b79f38
Api for reports mobile
simplyclc Jun 22, 2024
2d86cc1
Merge pull request #31 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Jun 22, 2024
96df4f3
update
simplyclc Jun 28, 2024
0e03cfd
docker update with kiosk sales reconfiguration
simplyclc Jul 4, 2024
000c4d5
update
simplyclc Jul 8, 2024
52463bb
Merge pull request #32 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Jul 8, 2024
c59e46f
updated categories
simplyclc Jul 8, 2024
06fe824
Merge pull request #33 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Jul 8, 2024
9b6ed15
Meals update and store
simplyclc Aug 5, 2024
6ee69f0
Reports data modeling
simplyclc Aug 19, 2024
764bbf5
Update 2024_04_14_003505_create_accounts_table.php
simplyclc Aug 19, 2024
3f61c9b
Merge pull request #34 from Homechow-Dev/Api-integration-0.0.3
Homechow-Dev Aug 19, 2024
40cc502
Token update
simplyclc Aug 20, 2024
7d55cc2
token update
simplyclc Aug 20, 2024
789fb78
kiosk build by account id
simplyclc Aug 20, 2024
e8699d0
Token revert
simplyclc Aug 21, 2024
ffc7f55
Token update
simplyclc Aug 21, 2024
6a197e8
Feedback Crud operations
simplyclc Aug 26, 2024
ad88a6f
Pin verification
simplyclc Aug 28, 2024
22391e3
faq crud creation
simplyclc Aug 29, 2024
ea04e78
Franchies update save
simplyclc Sep 2, 2024
dbf2e1d
Update AccountController.php
simplyclc Sep 2, 2024
4953493
Update AccountController.php
simplyclc Sep 2, 2024
8599a54
save stripe checkout data
simplyclc Sep 3, 2024
fdd3094
funcode
simplyclc Sep 20, 2024
1686925
update
simplyclc Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions .do/deploy.template.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spec:
name: sample-laravel
name: Home-chow
services:
- environment_slug: php
git:
Expand All @@ -8,5 +8,5 @@ spec:
envs:
- key: APP_KEY
value: "base64:UdAH2B63rlotjrkSSsj3Hppy4gbfr+OeHvtSdF9r9q8="
name: sample-laravel
name: Home-chow
run_command: heroku-php-apache2 public/
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
53 changes: 52 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
APP_KEY=base64:UdAH2B63rlotjrkSSsj3Hppy4gbfr+OeHvtSdF9r9q8=
APP_KEY=base64:MMNfh7xgld/MGUCGMIbNLV3ECQTyddwzf6Q9BTcaV9I=
APP_NAME=Homechow
APP_ENV=local
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=homchowdb
DB_USERNAME=admin
DB_PASSWORD=phpmyadmin

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=cookie
SESSION_LIFETIME=120
SANCTUM_STATEFUL_DOMAINS="localhost:3000,127.0.0.1"
SESSION_DOMAIN=localhost:3000

MEMCACHED_HOST=127.0.0.1

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

STRIPE_KEY=
STRIPE_SECRET = "sk_test_51LZGPwJHB44v0fiQLaa3IAGwi0u3V0gFOUs16MVZb3Rbff1NWHwNuZGvlEa3ttrxFIkhAEy6ljAxWc6IX98vVIHb00w34iMhRs"

33 changes: 24 additions & 9 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,46 +1,61 @@
APP_NAME=Laravel
APP_NAME=MyApp
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_URL=http://localhost:8000
FRONTEND_URL=http://localhost:3000

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
DB_PASSWORD=root

FILESYSTEM_DISK=local
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_DRIVER=cookie
SESSION_LIFETIME=120
SESSION_DOMAIN=localhost

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM php:8.1-fpm

# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip

# Install PHP extensions
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd

# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Set the working directory
WORKDIR /var/www/html

# Copy project files
COPY . .

# Install project dependencies
RUN composer install --optimize-autoloader --no-dev

# Set permissions for Laravel
RUN chown -R www-data:www-data /var/www/html/storage

# Run the PHP server
CMD php artisan serve --host=0.0.0.0 --port=8000
80 changes: 45 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,66 @@
## Getting Started
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>

We provide a sample app using Laravel that you can deploy on App Platform. These steps will get this sample application running for you using App Platform.
<p align="center">
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>

**Note: Following these steps may result in charges for the use of DigitalOcean services.**
## About Laravel

### Requirements
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

* You need a DigitalOcean account. If you don't already have one, you can sign up at https://cloud.digitalocean.com/registrations/new.
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).

## Deploying the App
Laravel is accessible, powerful, and provides tools required for large, robust applications.

Click this button to deploy the app to the DigitalOcean App Platform. If you are not logged in, you will be prompted to log in with your DigitalOcean account.
## Learning Laravel

[![Deploy to DigitalOcean](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/digitalocean/sample-laravel/tree/main)
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

Using this button disables the ability to automatically re-deploy your app when pushing to a branch or tag in your repository as you are using this repo directly.
You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.

If you want to automatically re-deploy your app, [fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the GitHub repository to your account so that you have a copy of it stored to the cloud. Click the **Fork** button in the GitHub repository and follow the on-screen instructions.
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

After forking the repo, you should now be viewing this README in your own GitHub org (e.g. `https://github.com/<your-org>/sample-laravel`). To deploy the new repo, visit https://cloud.digitalocean.com/apps and click **Create App**. Then, click **GitHub**, select the repository you created and select the `main` branch. App Platform will inspect the code, automatically detect the kind of component to create, and use the correct buildpack to create and deploy a container.
## Laravel Sponsors

After clicking the **Deploy to DigitalOcean** button or completing the instructions above to fork the repo, follow these steps:
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).

1. Configure the app such as specifying HTTP routes, environment variables or adding a database.
1. Provide a name for your app and select which region you want to deploy your app to and click **Next**. The closest region to you should be selected by default. All App Platform apps are routed through a global CDN. So this will not affect your app performance, unless it needs to talk to external services.
1. On the following screen, leave all the fields as they are and click **Next**.
1. Confirm your **Plan** settings and how many containers you want to launch and click **Launch Basic/Pro App**.
1. You should see a "Building..." progress indicator. You can click **View Logs** to see more details of the build.
1. It can take a few minutes for the build to finish, but you can follow the progress in the **Deployments** tab.
1. Once the build completes successfully, click the **Live App** link in the header and you should see your running application in a new tab, displaying the home page.
### Premium Partners

### Making Changes to Your App
- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[Many](https://www.many.co.uk)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- **[DevSquad](https://devsquad.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
- **[OP.GG](https://op.gg)**
- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)**
- **[Lendio](https://lendio.com)**

If you followed the steps to fork the repo and used your own copy when deploying the app, you can push changes to your fork and see App Platform automatically re-deploy the update to your app. During these automatic deployments, your application will never pause or stop serving request because App Platform offers zero-downtime deployments.
## Contributing

Here's an example code change you can make for this app:
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

1. Edit code within the repository
1. Commit the change to the `main` branch. Normally it's a better practice to create a new branch for your change and then merge that branch to `main` after review, but for this demo you can commit to the `main` branch directly.
1. Visit https://cloud.digitalocean.com/apps and navigate to your sample app.
1. You should see a "Building..." progress indicator, just like when you first created the app.
1. Once the build completes successfully, click the **Live App** link in the header and you should see your updated application running. You may need to force refresh the page in your browser (e.g. using **Shift+Reload**).
## Code of Conduct

### Learn More
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

You can learn more about the App Platform and how to manage and update your application at https://www.digitalocean.com/docs/app-platform/.
## Security Vulnerabilities

## Deleting the App
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.

When you no longer need this sample application running live, you can delete it by following these steps:
1. Visit the Apps control panel at https://cloud.digitalocean.com/apps.
2. Navigate to the sample app.
3. In the **Settings** tab, click **Destroy**.
## License

**Note: If you do not delete your app, charges for using DigitalOcean services will continue to accrue.**
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
Binary file added app/.DS_Store
Binary file not shown.
18 changes: 2 additions & 16 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,18 @@

class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];

/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
protected function schedule(Schedule $schedule): void
{
// $schedule->command('inspire')->hourly();
}

/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
protected function commands(): void
{
$this->load(__DIR__.'/Commands');

Expand Down
41 changes: 8 additions & 33 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,23 @@
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
* The list of the inputs that are never flashed to the session on validation exceptions.
*
* @var array
*/
protected $dontReport = [
//
];

/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
* @var array<int, string>
*/
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];

/**
* Report or log an exception.
*
* @param \Throwable $exception
* @return void
*
* @throws \Exception
*/
public function report(Throwable $exception)
{
parent::report($exception);
}

/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Throwable $exception
* @return \Symfony\Component\HttpFoundation\Response
*
* @throws \Throwable
* Register the exception handling callbacks for the application.
*/
public function render($request, Throwable $exception)
public function register(): void
{
return parent::render($request, $exception);
$this->reportable(function (Throwable $e) {
//
});
}
}
Binary file added app/Http/.DS_Store
Binary file not shown.
Binary file added app/Http/Controllers/.DS_Store
Binary file not shown.
Loading