Friday, March 18, 2022

[FIXED] Where is the notification push code on Laravel

Issue

Sorry for asking this question. I'm new to laravel and I'm trying to find out the location of the responsible script of sending the notification on submite button event.

When I go to

http://127.0.0.1:8000/push-notificaiton

You know there you fill the title and message then you submit it to a script or code where you find the targeted auth username.

I want to know the location of that code to edit it in order to do one more things such as inserting title and message in database after sending the push notification to use.


Solution

For laravel 4.2 Go to app/routes.php. Search for 'push-notificaiton'. You will find a controller and function next to the url. Go to the controller and find the function

For laravel 5 - 5.2

app/Http/routes.php

From version 5.3 - 8

routes/web.php


Answered By - Anna

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.