How to integrate sms gateway in laravel?

|
dhruv_lo 2020-07-15 14:05:06
2020-07-15 14:03:56
$Last_record = AppUsers::all()-order by(‘id’)->latest()->first();
Will get the last record inserted
Check for enrollements-number
If($Last_record->enrollment_no)
$newEnrollmentNo= $Last_record->enrollment_no +1
Else
$newEnrollmentNo= Carbon::Now()->y.100

thank u so much got it

2020-07-15 14:07:24
Alright cool
ransikoo 2020-07-15 14:33:55
i need tutoorial help for multi auth for api . pls help me?
ikudratov 2020-07-15 14:55:20
ransikoo 2020-07-15 14:33:55
i need tutoorial help for multi auth for api . pls help me?

https://medium.com/@JinoAntony/multi-user-api-authentication-using-laravel-jwt-8ae572b0c4cf

Multi-User API Authentication Using Laravel JWTMedium
RESTful API development using Laravel is quite easy. Laravel provides built-in support for API development using Laravel Passport and a…
ikudratov 2020-07-15 14:58:36
https://pusher.com/tutorials/multiple-authentication-guards-laravel

How to use multiple authentication guards in a Laravel appPusher
This tutorial guides you through setting up multiple authentication guard in a Laravel web app. You will provide multiple authentication routes for different users, redirecting each user type to the appropriate content.
Kapil Sharma 2020-07-15 15:05:01
laravel_discuss-45001.jpg

ransikoo 2020-07-15 15:08:27
ikudratov 2020-07-15 14:58:36
https://pusher.com/tutorials/multiple-authentication-guards-laravel

it is very good tutorial but i need for api with jwt or sanctum

ikudratov 2020-07-15 15:13:02
ransikoo 2020-07-15 15:08:27
it is very good tutorial but i need for api with jwt or sanctum

Just google it!

ransikoo 2020-07-15 15:14:16
ikudratov 2020-07-15 15:13:02
Just google it!

not answer it

oxbir 2020-07-15 19:44:34
I installed “cviebrock/eloquent-sluggable”: “^4.8”, and I want to add slug path of committees category.

I have a many committees in my menu

2020-07-15 21:20:52
Can any one suggest Extension for Laravel Goto Function in VS Code
2020-07-15 21:21:48
If I click on any function call it should automatically takes to the corresponding function in vs code
2020-07-15 21:22:23
Is there is any Extension for the above operation VS Code
luisdavidgd 2020-07-15 22:32:44
Intelephense
Unknownuser009 2020-07-16 08:42:13
Anyone plz explain what is the diff between url and route?
Unknownuser009 2020-07-16 08:43:06
Cause in when i use admin lte i cant understand how to route instead of url in sidebar
Siberfx 2020-07-16 08:52:52
route uses the names that you settin in routes file. and its clean way to use it in blade files.
Siberfx 2020-07-16 08:53:12
when you modify the url it still continues working that way
Siberfx 2020-07-16 08:53:44
but with url its.a mess. when route somehow needs to be changed in all files that you used the route also should be updated.
Siberfx 2020-07-16 08:53:56
I dont prefer such crap and I dont use it too
2020-07-16 09:36:30
How do I put email notifications in the queue? Thanks for helping me
Siberfx 2020-07-16 09:47:33
You should create command to keep it active, and configure supervisor in linux.. its an option
Unknownuser009 2020-07-16 09:50:16
Siberfx 2020-07-16 08:52:52
route uses the names that you settin in routes file. and its clean way to use it in blade files.

Thanks sirjee

Unknownuser009 2020-07-16 10:23:33
Siberfx 2020-07-16 08:53:56
I dont prefer such crap and I dont use it too

Then which way you prefer ?

Siberfx 2020-07-16 10:23:53
name(‘name-of-route’)
Unknownuser009 2020-07-16 10:24:11
Cause how can i use wiyh resouce controller….
Siberfx 2020-07-16 10:24:23
you can name them too
Unknownuser009 2020-07-16 10:25:27
Means i can use both way…i can use with route..and url with same way…
ManatovD 2020-07-16 10:26:42
Hello to all )) sorry for provocative question, but how much many pay the laravel developers in your country?
ManatovD 2020-07-16 10:26:52
In dollars
2020-07-16 10:27:05
How to integrate sms gateway in laravel? Please help
ManatovD 2020-07-16 10:27:55
Money *
Siberfx 2020-07-16 10:28:33
no offense but its the stupidest question I’ve ever seen in the channel, why should it be a topic to talk about?
ManatovD 2020-07-16 10:30:34
Siberfx 2020-07-16 10:28:33
no offense but its the stupidest question I’ve ever seen in the channel, why should it be a topic to talk about?

Hm, I understand, but in my country the pay very little, so I think left from it

ManatovD 2020-07-16 10:31:38
my country does not have a suitable working environment.
Siberfx 2020-07-16 10:31:46
its not about the country/company, its about the market you are working for
ManatovD 2020-07-16 10:33:14
Siberfx 2020-07-16 10:31:46
its not about the country/company, its about the market you are working for

That’s why I’m asking, how much is a developer paid in your market?

Siberfx 2020-07-16 10:34:13
well this question is not for me 🙂
Siberfx 2020-07-16 10:34:29
its too personal question
Siberfx 2020-07-16 10:34:44
as same as you are asking are you a virgin<
Iootes 2020-07-16 11:31:12
laravel_discuss-45052.jpg

sahilbalgotra 2020-07-16 12:34:40
Hi need help🙏
cccr85 2020-07-16 12:35:08
what help you need?
sahilbalgotra 2020-07-16 12:35:12
Data filter working for some query
sahilbalgotra 2020-07-16 12:35:21
public function searchPendingOrder(request $request)
    {
        if (isset($request->month)) {
            $data = ContactUs::whereMONTH(‘created_at’, $request->month)->where(‘status’, ‘4’);
        }
        if (isset($request->email)) {
            $data = ContactUs::where([’email’ => $request->email, ‘status’ => ‘4’]);
        }
        if (isset($request->country)) {
            // dd($request->country);
            $data = ContactUs::where([‘country’ => $request->country, ‘status’ => ‘4’]);
        }
        if (isset($request->year)) {
            $data = ContactUs::whereYEAR(‘created_at’, $request->year)->where(‘status’, ‘4’);
        }
        if (isset($request->subject)) {
            $data = ContactUs::where([‘subject’ => $request->subject, ‘status’ => ‘4’]);
        }
        $data = $data->paginate(8);
        // dd($data);
        return view(‘dashboard.searchpendingorder’, compact(‘data’));
    }
sahilbalgotra 2020-07-16 12:36:02
Search by year works month works subject works email not working country not working
Ankit 2020-07-16 12:40:26
Because you always intilize new Eloquent query first before start any condition take $data = contactus::query()

In if condition make where condition like this
$data = $data->where

sahilbalgotra 2020-07-16 13:10:25
Ankit 2020-07-16 12:40:26
Because you always intilize new Eloquent query first before start any condition take $data = contactus::query()

In if condition make where condition like this
$data = $data->where

I tried this too

sahilbalgotra 2020-07-16 13:10:35
Not worked
sahilbalgotra 2020-07-16 13:42:50
sahilbalgotra 2020-07-16 12:35:21
public function searchPendingOrder(request $request)
    {
        if (isset($request->month)) {
            $data = ContactUs::whereMONTH(‘created_at’, $request->month)->where(‘status’, ‘4’);
        }
        if (isset($request->email)) {
            $data = ContactUs::where([’email’ => $request->email, ‘status’ => ‘4’]);
        }
        if (isset($request->country)) {
            // dd($request->country);
            $data = ContactUs::where([‘country’ => $request->country, ‘status’ => ‘4’]);
        }
        if (isset($request->year)) {
            $data = ContactUs::whereYEAR(‘created_at’, $request->year)->where(‘status’, ‘4’);
        }
        if (isset($request->subject)) {
            $data = ContactUs::where([‘subject’ => $request->subject, ‘status’ => ‘4’]);
        }
        $data = $data->paginate(8);
        // dd($data);
        return view(‘dashboard.searchpendingorder’, compact(‘data’));
    }

Any one share can help me with this

|