How to fix this error?

|
fredaster23 2022-06-21 06:11:01
Nayan Koshti 2022-06-21 04:58:46
I have query like
$dd = Select * from (
Select col1, col2 from table1
Union
Select col1, col2 from table2
) demo

So if I pass this $dd in datatables::of ($dd) ->make(true)
It shows error when I want to search

Error is where condition is not found

Try to use where and orWhere in your controller instead of selecting everything.

Param Rana 2022-06-21 06:19:48
Urgent Opening
Java Developer
Salary:- 4LPA to 12LPA
Location:- Gurgaon
Experience:- 2 to 4 year
Key Skill
assembly language , c# , java , c , java programmer , oops , software engineering , jquery , sql

Interested Candidates send your cv at sourcing@lebenswerk dot co dot in

Param Rana 2022-06-21 06:35:58
Urgent opening
Name:- Laravel Developer
Mode:- Permanent & Work on site ( Ahmedabad)
Salary :- As per the company norms
Experience:- 2 to 8 yrs
Skill sets:- Strong knowledge of PHP web framework Laravel.
Understanding the fully synchronous behavior of PHP.
Understanding of MVC design patterns.
Basic understanding of front-end technologies, such as JavaScript, HTML5, and CSS3.
Knowledge of object oriented PHP programming.
Understanding accessibility and security compliance {{Depending on the specific project}}.
Strong knowledge of the common PHP or web server exploits and their solutions.
Understanding fundamental design principles behind a scalable application.
User authentication and authorization between multiple systems, servers, and environments.
Proficient understanding of code versioning tools, such as Git and all repository.

Interested Candidates send your cv at sourcing@lebenswerk dot co dot in

susheelk985 2022-06-21 06:55:12
APP_DEBUG is set to true while APP_ENV is not local

This could make your application vulnerable to remote execution. Read more about Ignition security.

susheelk985 2022-06-21 06:55:33
susheelk985 2022-06-21 06:55:12
APP_DEBUG is set to true while APP_ENV is not local

This could make your application vulnerable to remote execution. Read more about Ignition security.

How to fix this error?

sHryung01 2022-06-21 06:56:19
fredaster23 2022-06-21 06:09:34
If you want to check EXISTING table, you should use findOrFail in your controller, not Request $request since the request is mainly for storing data.

can findOrFail be used to call the API ?

fredaster23 2022-06-21 06:56:57
sHryung01 2022-06-21 06:56:19
can findOrFail be used to call the API ?

You can only find out if you try 🙂

fredaster23 2022-06-21 06:57:35
susheelk985 2022-06-21 06:55:12
APP_DEBUG is set to true while APP_ENV is not local

This could make your application vulnerable to remote execution. Read more about Ignition security.

Composer self-update if not check your env file.

susheelk985 2022-06-21 07:25:55
fredaster23 2022-06-21 06:57:35
Composer self-update if not check your env file.

Ok

fredaster23 2022-06-21 08:06:07
Can someone help me out with morphto?

$order = Order::with([‘product’ => function (MorphTo $morphTo) {
$morphTo->constrain([
Product::class => function (Builder $query) {
$query->where(‘brand_id’);
},
]);
}])->orwhere(‘status’, ‘pending’)->orWhere(‘status’, ‘confirm’)->orwhere(‘status’, ‘processing’)->orwhere(‘brand_id’, ‘1’)->get();

natghi2010 2022-06-21 08:19:45
sHryung01 2022-06-21 05:20:04
controller in laravel

Oh no you dont

natghi2010 2022-06-21 08:21:42
sHryung01 2022-06-21 05:20:04
controller in laravel

My bro you want some tips?

sHryung01 2022-06-21 08:22:28
natghi2010 2022-06-21 08:21:42
My bro you want some tips?

Yes I want tips

natghi2010 2022-06-21 08:22:56
sHryung01 2022-06-21 08:22:28
Yes I want tips

First make a form request

natghi2010 2022-06-21 08:23:06
And put your validation in there
natghi2010 2022-06-21 08:23:45
6 lines elimnated
sHryung01 2022-06-21 08:24:17
laravel_discuss-126211.jpg
I made like this in controller but still can’t
sHryung01 2022-06-21 08:24:48
laravel_discuss-126212.jpg
this is on ajax bro
sHryung01 2022-06-21 08:26:42
laravel_discuss-126213.jpg

natghi2010 2022-06-21 08:26:47
Php artisan make:request EmailCheckRequest
natghi2010 2022-06-21 08:26:58
sHryung01 2022-06-21 08:24:48
this is on ajax bro

This^

natghi2010 2022-06-21 08:27:23
Where is says rules
natghi2010 2022-06-21 08:27:59
Put your rules
natghi2010 2022-06-21 08:29:15
In laravel, there is a saying. He who puts his logic in his controller is a gay donkey.
sHryung01 2022-06-21 08:33:29
natghi2010 2022-06-21 08:27:59
Put your rules

laravel_discuss-126220.jpg
do you mean separated like this?

natghi2010 2022-06-21 08:33:56
Perfect
natghi2010 2022-06-21 08:34:07
Now make a folder called services
natghi2010 2022-06-21 08:34:44
sHryung01 2022-06-21 08:33:29
do you mean separated like this?

Also on your request file make authorise false

sHryung01 2022-06-21 08:36:03
sHryung01 2022-06-21 08:33:29
do you mean separated like this?

here i call api check email from golang bro

kalpesh7132 2022-06-21 08:37:24
public function update(request $req)
{
$validated=$req->validate
([
‘BrandName’=>’required | max:15’,
‘Brand_Product’=>’required | max:15’,
‘Price’=>’required | int’,
]);
try
{
$data=Brand::find($req->id);
$data->BrandName=$req->BrandName;
$data->Brand_Product=$req->Brand_Product;
$data->Price=$req->Price;
$data->save();
return redirect(“brand/list”);
}
natghi2010 2022-06-21 08:37:26
sHryung01 2022-06-21 08:36:03
here i call api check email from golang bro

I get that

kalpesh7132 2022-06-21 08:37:35
catch(IlluminateDatabaseQueryException $ex)
{
kalpesh7132 2022-06-21 08:37:52
ErrorException
Creating default object from empty value
natghi2010 2022-06-21 08:39:27
sHryung01 2022-06-21 08:33:29
do you mean separated like this?

Next I’m your env file

natghi2010 2022-06-21 08:40:55
sHryung01 2022-06-21 08:33:29
do you mean separated like this?

Actually send me your controller file in private

|