alright I fix it by renaming the table in my database, but how can I disable the case sensibility with Eloquent?
I want to create video project using laravel, anyone has source codes?
In laravel with node project where can i write simple button hide show js code?
Is there a way to exclude?
chto za proyelt?
Can any one help me to convert mysql query to Laravel?
Can I use two auto-increment in a single table?
Are you using mysql?
do u have any example ?

https://t.co/xB6Z9aun9V Visual tools for Web artisans, Automate the production of repetitive source code to minimize the risk of errors and allow the programmer to focus on writing higher value-added code. #laravel #ProjectGenerator #DataBaseDesignerTool #ERD #developer
Is there a way to exclude? Or I should include the navbar in all except the one I don’t want?
{
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->first();
if($request->type == “view”)
{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}else{
if($request->value == 0){
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->delete();
$flag = false;
}else{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}
}
if($flag == true)
{
$save_data = array(
‘video_id’ => $request->video_id,
‘phone_id’ => $request->phone_id,
‘type’ => $request->type,
);
// dd($save_data);
AppViewLike::create($save_data);
if($request->type == “view”)
{
$video_data = AppVideo::where(‘id’,$request->video_id)->first();
$total_view = $video_data->view + 1;
AppVideo::where(‘id’,$request->video_id)->update(array(‘view’=>$total_view));
}
return Response::json([
‘status’ => true,
‘message’ => “Success”,
]);
}else{
return Response::json([
‘status’ => false,
‘message’ => “Success”,
]);
}
}
How to add ->doesntExist(); in video_id with where clause ? I want that if video_id already present then don’t insert the data. How to do this ?
{
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->first();
if($request->type == “view”)
{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}else{
if($request->value == 0){
$view_data = AppViewLike::where(‘video_id’,$request->video_id)->where(‘phone_id’,$request->phone_id)->where(‘type’,$request->type)->delete();
$flag = false;
}else{
if(count($view_data) == 0)
{
$flag = true;
}else{
$flag = false;
}
}
}
if($flag == true)
{
$save_data = array(
‘video_id’ => $request->video_id,
‘phone_id’ => $request->phone_id,
‘type’ => $request->type,
);
// dd($save_data);
AppViewLike::create($save_data);
if($request->type == “view”)
{
$video_data = AppVideo::where(‘id’,$request->video_id)->first();
$total_view = $video_data->view + 1;
AppVideo::where(‘id’,$request->video_id)->update(array(‘view’=>$total_view));
}
return Response::json([
‘status’ => true,
‘message’ => “Success”,
]);
}else{
return Response::json([
‘status’ => false,
‘message’ => “Success”,
]);
}
}
How to add ->doesntExist(); in video_id with where clause ? I want that if video_id already present then don’t insert the data. How to do this ?
First find the video
$vid = Video::where(“video_id”, $id)->get();
If($vid != null) {
// the add code
}
$vid = Video::where(“video_id”, $id)->get();
If($vid != null) {
// the add code
}
The video_id is inserting but i want that if it’s already present then don’t insert that data again and again
How to do this ?

IlluminateSupportFacadesBlade::component(‘components.button’, ‘btn’);
In function boot
Why dont work?
Check eloquent firstOrCreate and dont write messy code 🙂
How?
Can any one help me to convert mysql query to Laravel?
this is my route
controller
public function a(Request $request){
$id=$request->input(’email’);
}
is this correct way to retrieve and i want my url like this
http:……../user/ag.rajat
is it correct help anyone
Y two not just one …..
Are you using mysql?

coz i already have 1 auto increment on id

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