Can you post screenshots of the code and errors?

|
Ankitkush 2021-10-08 10:39:26
laravel_discuss-96624.jpg

Ankitkush 2021-10-08 10:39:56
laravel_discuss-96625.jpg

Ankitkush 2021-10-08 10:40:27
laravel_discuss-96626.jpg

bryan_king 2021-10-08 10:41:24
Ankitkush 2021-10-08 10:40:27

I wouldn’t write a query inside a loop . And u should consider chunking data if it’s too large

Siberfx 2021-10-08 10:44:21
also in return view (‘front.category’, compact(‘result’));
bryan_king 2021-10-08 10:47:50
👆🏾 that too
2021-10-08 12:14:32
i’m building a search engine. i have create à search api with laravel, i did the design with angular and now i want to call my search api in my angular project. somebody have an idea of how to do? (i’m still learning angular😅)
Moses Ejim 2021-10-08 12:47:02
Good morning everyone, I am a laravel developer looking for a remote job. I am an exceptional web developer with 2years experience and I am confident of adding much value to your company if you employ me.
Thank you for your consideration🙏
Siberfx 2021-10-08 13:15:38
nice place to seek for a JS dev 🙂
daydreamer5371 2021-10-08 14:13:55
Moses Ejim 2021-10-08 12:47:02
Good morning everyone, I am a laravel developer looking for a remote job. I am an exceptional web developer with 2years experience and I am confident of adding much value to your company if you employ me.
Thank you for your consideration🙏

Better not to trust this like person

Leetump 2021-10-08 14:16:22
1. Dart & Flutter Developer:- Candidates must be know…Dart & Flutter(Backend & Frontend development) with data structure and algorithm designing.

CTC: negotiable
Location: Mumbai

2. Frontend developer:-

CTC: negotiable
Location: Mumbai

Interested candidates share their resume at saifidrisi88@gmail.com (must be mentioned their job role in email subject).

WellyRosadi 2021-10-08 14:49:36
datlechin 2021-10-07 23:39:22
why i can’t add docs folder

May you have git config inside docs folder

datlechin 2021-10-08 14:50:24
WellyRosadi 2021-10-08 14:49:36
May you have git config inside docs folder

Thanks bro, i fixed

Billygotclout 2021-10-08 16:04:36
Any way on how to get the id from a different table as a table_id
Billygotclout 2021-10-08 16:12:29
Billygotclout 2021-10-08 16:04:36
Any way on how to get the id from a different table as a table_id

Anyone?

bryan_king 2021-10-08 16:26:28
Billygotclout 2021-10-08 16:04:36
Any way on how to get the id from a different table as a table_id

ModelName::select(‘id as table_id’);

Billygotclout 2021-10-08 16:31:42
bryan_king 2021-10-08 16:26:28
ModelName::select(‘id as table_id’);

Thank you🙏🏿

natghi2010 2021-10-08 16:37:35
2021-10-08 12:14:32
i’m building a search engine. i have create à search api with laravel, i did the design with angular and now i want to call my search api in my angular project. somebody have an idea of how to do? (i’m still learning angular😅)

Learning? You mean dropping?

daydreamer5371 2021-10-08 17:52:02
This is how my strip controller looks like
<?php

namespace AppHttpControllers;

use AppModelsUser;
use IlluminateHttpRequest;
use StripeCheckoutSession;
use StripeStripe;
use StripeCustomer;

class StripeController extends Controller
{
// public function __construct()
// {
// $this->middleware(‘auth’);
// }

public function index()
{
//
}

public function create()
{
//
}

public function store(Request $request)
{
$user = User::with([‘profile’, ‘subscription’])->where(‘id’, auth()->id())->firstOrFail();
$amount = ($user->subscription->package_price + $user->subscription->reseller_cut) * 100;

Stripe::setApiKey(env(‘STRIPE_SECRET’));

header(‘Content-Type: application/json’);

$checkout_session = Session::create([
‘customer’ => $user->stripe_id,
‘payment_method_types’ => [‘card’],
‘line_items’ => [[
‘price_data’ => [
‘currency’ => env(‘currency’),
‘unit_amount’ => $amount,
‘product_data’ => [
‘name’ => $user->subscription->package_name,
],
],
‘quantity’ => 1,
]],
‘mode’ => ‘payment’,
‘success_url’ => route(‘success’),
‘cancel_url’ => route(‘cancel’),
]);

return response()->json([ ‘id’ =>$checkout_session->id]);
}

public function show($id)
{
//
}

public function edit($id)
{
//
}

public function update(Request $request, $id)
{
//
}

public function destroy($id)
{
//
}
}

daydreamer5371 2021-10-08 17:52:19
daydreamer5371 2021-10-08 17:52:02
This is how my strip controller looks like
<?php

namespace AppHttpControllers;

use AppModelsUser;
use IlluminateHttpRequest;
use StripeCheckoutSession;
use StripeStripe;
use StripeCustomer;

class StripeController extends Controller
{
// public function __construct()
// {
// $this->middleware(‘auth’);
// }

public function index()
{
//
}

public function create()
{
//
}

public function store(Request $request)
{
$user = User::with([‘profile’, ‘subscription’])->where(‘id’, auth()->id())->firstOrFail();
$amount = ($user->subscription->package_price + $user->subscription->reseller_cut) * 100;

Stripe::setApiKey(env(‘STRIPE_SECRET’));

header(‘Content-Type: application/json’);

$checkout_session = Session::create([
‘customer’ => $user->stripe_id,
‘payment_method_types’ => [‘card’],
‘line_items’ => [[
‘price_data’ => [
‘currency’ => env(‘currency’),
‘unit_amount’ => $amount,
‘product_data’ => [
‘name’ => $user->subscription->package_name,
],
],
‘quantity’ => 1,
]],
‘mode’ => ‘payment’,
‘success_url’ => route(‘success’),
‘cancel_url’ => route(‘cancel’),
]);

return response()->json([ ‘id’ =>$checkout_session->id]);
}

public function show($id)
{
//
}

public function edit($id)
{
//
}

public function update(Request $request, $id)
{
//
}

public function destroy($id)
{
//
}
}

please give same function for razorpay thanks

Shiv_95 2021-10-08 18:30:58
Hi I am getting this error
Message: preg_match(): Compilation failed: regular expression is too large at offset 85678
Filename: database/DB_query_builder.php
It loads a large data set can anyone help me with this issue dm me thanks in advance 😊
EmmanuelTorty 2021-10-08 18:54:26
Shiv_95 2021-10-08 18:30:58
Hi I am getting this error
Message: preg_match(): Compilation failed: regular expression is too large at offset 85678
Filename: database/DB_query_builder.php
It loads a large data set can anyone help me with this issue dm me thanks in advance 😊

Can you post screenshots of the code and errors?

ReactNativeDeveloper_2911 2021-10-08 19:22:08
Hello everyone,if any one have project in react native , react js ,php laravel or bug fixing ,then dm us
2021-10-08 19:33:55
I am looking for a Laravel developer for a full time position. I would prefer someone from Kerala.
It’s a fully remote opportunity for a product based company
Romil 2021-10-08 21:37:11
Hello anyone facing issue while send calendar invite in outlook fork lat 2 day
flyingdragons 2021-10-09 03:52:51
Hi. How may I help you
daydreamer5371 2021-10-09 06:40:56
laravel_discuss-96672.jpg
I try to add gst price for each package but this query not working kindly help me
yewess97 2021-10-09 07:31:56
guys .. in (api.php) file I wanna check if some key has certain value, so return ok, else, return not ok .. how to type this check ??
for example when I type like that, it gives me the else condition which is not ok and wrong:

Route::post(‘/test’, function (Request $request) {
if ($request→has([‘name’ => ‘joe’]) {
return response()→json([‘message’ => ‘success’]);
} else {
return response()→json([‘message’ => ‘wrong, try again’]);
}
})→name(‘test’);

I just wanna test somthing with postman and I’m new to the API in laravel

lmjam30l 2021-10-09 07:36:42
Hi Guys,I am frontend developer, I have a skillset of HTML5, CSS3,Bootstrap,javascript & VuejS,Nuxt,Vuetify…
I am looking for remote job or freelance projects…
bryan_king 2021-10-09 09:10:18
yewess97 2021-10-09 07:31:56
guys .. in (api.php) file I wanna check if some key has certain value, so return ok, else, return not ok .. how to type this check ??
for example when I type like that, it gives me the else condition which is not ok and wrong:

Route::post(‘/test’, function (Request $request) {
if ($request→has([‘name’ => ‘joe’]) {
return response()→json([‘message’ => ‘success’]);
} else {
return response()→json([‘message’ => ‘wrong, try again’]);
}
})→name(‘test’);

I just wanna test somthing with postman and I’m new to the API in laravel

Maybe u should try request->input(name) === ‘joe’

Mahesh Babu P 2021-10-09 09:25:15
Need php developers having 2+ years of experience.

Knowledge on codeigniter is a plus.
Knowledge on oops concepts in php.
Knowledge on frontend technologies like html, css, javascript and jQuery is a plus.

daydreamer5371 2021-10-09 09:41:56
daydreamer5371 2021-10-09 06:40:56
I try to add gst price for each package but this query not working kindly help me

Anyone ?

Itech_programmer 2021-10-09 09:44:07
daydreamer5371 2021-10-09 06:40:56
I try to add gst price for each package but this query not working kindly help me

What’s error showed?

Itech_programmer 2021-10-09 09:44:26
daydreamer5371 2021-10-09 09:41:56
Anyone ?

Did u check without validation ?

daydreamer5371 2021-10-09 09:44:41
Itech_programmer 2021-10-09 09:44:07
What’s error showed?

No errors only showing NULL in database

|