aliya

aliya

Member Since 5 Months Ago

Experience Points
810
Total
Experience

4,190 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
810 XP
Aug
19
3 months ago
Activity icon

Replied to Duplicacy Of Dates

thanks for your response

Aug
17
3 months ago
Activity icon

Started a new Conversation Duplicacy Of Dates

1.(09-Aug to 15-Aug) Demo aliya

2.(09-Aug to 15-Aug) User A

3.(09-Aug to 15-Aug) Aliya

1.(07-Aug to 13-Aug) Demo aliya

2.(07-Aug to 13-Aug) User A

3.(07-Aug to 13-Aug) Aliya

i have 3 values in database with same date. I want to show the values in laravel blade like this:-

                                                                                (09-Aug to 15-Aug)
                                                                             Demo aliya ,User A ,Aliya

                                                                              (07-Aug to 13-Aug)
                                                                             Demo aliya ,User A ,Aliya

how i get value?

Aug
08
4 months ago
Activity icon

Replied to Delete Notification

thanks

Activity icon

Replied to Conditional Redirect After Registration

You can use retrun redirect( your url)

Activity icon

Replied to Delete Notification

Notification means notification when other user like your posts you got a notification that someone has liked your posts and this value store in notification table so if a user want to delete that notification then delete that but I don't know how Please visit to know more https://laravel.com/docs/5.8/notifications

Activity icon

Started a new Conversation Delete Notification

How to delete database notifications by row in laravel

Jul
25
4 months ago
Activity icon

Replied to Alternative To Paginate On Collection?

you can use orderBy() method with your model or variable like ths $comment = Comment::orderBy('created_at','desc')->paginate(10);

Jul
06
5 months ago
Activity icon

Replied to Laravel Api

return response()->JSON(['success'=>1,'post'=>$data]) Through which we can return the json response in array format But How to return the json response in object format????

Activity icon

Started a new Conversation Laravel Api

how to return the json response in array into object format

Jul
03
5 months ago
Activity icon

Replied to Trying To Get Property Of Non-object

You have to mention in your quotation function that which column the relationship be upon as you mention on user function

Activity icon

Replied to Duplicacy Of Values From One Table For Two Different Row In Join In Laravel Api How To Solve This

Thankyou everyone who guides me in solving the problem

Jun
29
5 months ago
Activity icon

Replied to ErrorException Undefined Variable: Blogs

If you want to use get () use it but must return view like this:- Return view('post.post_textarea')with(' blogs',$blogs)

Activity icon

Replied to ErrorException Undefined Variable: Blogs

Why not use all method method to retrieve the value from database instead of get method in index method Like this :- $blogs = Blog::all();

Activity icon

Replied to Duplicacy Of Values From One Table For Two Different Row In Join In Laravel Api How To Solve This

have dont this:- join('classes', function ($join) { $join->on('classes.id', '=', 'openings.min_class')->orOn('classes.id','=','openings.max_class'); }) ->select(classes.name as min_class','classes.name as max_class') but give two results results:{ "min_class": "Nursery", "max_class": "Nursery", "id": 3095 }, { "min_class": "Std. Two", "max_class": "Std. Two", "id": 3095 } for one id

Activity icon

Replied to Duplicacy Of Values From One Table For Two Different Row In Join In Laravel Api How To Solve This

as you see the output the same class have two rows where min_class and max_class value are repeative. what to do to combine bot rowsin one row and min_class value is "nursery" and max_class value is "two "

Activity icon

Replied to Duplicacy Of Values From One Table For Two Different Row In Join In Laravel Api How To Solve This

i expect that min_class value should be different and max_class value should be different for one school.

Activity icon

Started a new Conversation Duplicacy Of Values From One Table For Two Different Row In Join In Laravel Api How To Solve This

output { "school_name": " Vidya Sanskar School", "rating_value": "3.9", "subject_title": "All subjects ( Play schools )", "view": 70, "seat": "6", "end_date": "2019-06-30", "name": "Jodhpur", "min_class": "Nursery", "max_class": "Nursery", "id": 3095 }, { "school_name": " Vidya Sanskar School", "rating_value": "3.9", "subject_title": "All subjects ( Play schools )", "view": 70, "seat": "6", "end_date": "2019-06-30", "name": "Jodhpur", "min_class": "Std. Two", "max_class": "Std. Two", "id": 3095 }

code

->join('classes', function ($join) { $join->on('classes.id', '=', 'openings.min_class')->orOn('classes.id','=','openings.max_class'); }) ->select(classes.name as min_class','classes.name as max_class')

Jun
28
5 months ago
Activity icon

Started a new Conversation Paginate Feartures In Laravel Api

how to use paginate features in laravel api when multiple tables are join by using join function

Jun
27
5 months ago
Activity icon

Replied to What Are Good Datepickers For Laravel?

You can use bootstrap datepicker and customise it according to your nees

Activity icon

Replied to Laravel In Ubuntu

please send me a complete link or video for installing laravel with xampp in ubuntu

Activity icon

Replied to Invalid Argument Passed

thanks everyone for guiding me and helping me to sort this problem

Activity icon

Replied to Invalid Argument Passed

when in send the value like this :-123 it save in database like this:1,2,3

Activity icon

Replied to Invalid Argument Passed

this one is for get() method public function teaching_city($token) { $data['cities'] = array(City::pluck('name','name')); $data['minclasses'] = array(Classes::where('status','1')->pluck('name','id')); $data['maxclasses'] = array(Classes::where('status','1')->pluck('name','id'));

      $data['skills'] =array(Skill::pluck('name','id'));

      $data['user']= User::where('app_token',$token)->select('teaching_city','min_class','max_class','skill','trained')->firstorfail();
    return response()->json(['success'=>'1','post' => $data]);

} this one is for post() method

public function updateteaching_city(Request $request) {

$data = $request->all();
$rule=array(
        'teaching_city' => 'required',
        'min_class' => 'required',
            'max_class' => 'required',
            'trained'=>'required',
            'skill' => 'required_if:trained,1',
              'token'=>'required'

);

        $validator = \Validator::make($data,$rule);
  if ($validator->fails())
  {
   return response()->json(['success'=>'0','post'=>$validator->messages()],  401); 

  }

  $user = User::select()->where('app_token', $data['token'])->first();


    $user->teaching_city = $data['teaching_city'];
    $user->min_class = $data['min_class'];
    $user->max_class = $data['max_class'];
    $user->trained= $data['trained'];
    if($user->trained == '2'){
    $user->skill = '';
    }else{
    $user->skill =  implode(',', $data['skill']);
    }
    $user->save();

    return response()->json(['success'=>'1','post'=>'Teaching City updated !'],  $this->successStatus); 

}
Activity icon

Replied to Invalid Argument Passed

for this i have the change the databse so it's impossible .please suggest anohter way @

Activity icon

Replied to Laravel Login Using Id From Different Database

send your whole code

Activity icon

Replied to Invalid Argument Passed

No, explode don't work here because we save the value in database through Id for ex: 1=B.ed, 2=M.ed , 3=D.L.ed

Jun
26
5 months ago
Activity icon

Replied to Invalid Argument Passed

$user->skill = implode(',',$data['skill']); I have used this but didn't happen anything same error [email protected]

Activity icon

Replied to Laravel In Ubuntu

If I want to use lampp instead of apache2 so how the proper installation of laravel done in ubuntu

Activity icon

Started a new Conversation Laravel In Ubuntu

How to install laravel 5.6 with xampp in ubuntu

Activity icon

Replied to Laravel Login Using Id From Different Database

Public function LegonSignin(Request $request) { $input = $request::all();

Activity icon

Replied to Laravel Login Using Id From Different Database

There is some error in code in LegonSignin function

Activity icon

Replied to Invalid Argument Passed

How to do this @mvd

Activity icon

Replied to Invalid Argument Passed

But it works in our simple controller

Activity icon

Replied to Laravel Passport | Login/Register Redirects To Welcome Page

Which version of laravel you use????

Activity icon

Replied to Invalid Argument Passed

dd($data['skill']); It gives result Likes :- B.edM.edNTT

but As You know implode seperate the value with the comma seperator but it didn't happen in laravel api

Activity icon

Replied to Invalid Argument Passed

public function updateteaching_city(Request $request) {

$data = $request->all();
$rule=array(
        'teaching_city' => 'required',
        'min_class' => 'required',
            'max_class' => 'required',
            'trained'=>'required',
            'skill' => 'required_if:trained,1',
              'token'=>'required'

);

        $validator = \Validator::make($data,$rule);
  if ($validator->fails())
  {
   return response()->json(['success'=>'0','post'=>$validator->messages()],  401); 

  }

  $user = User::select()->where('app_token', $data['token'])->first();

    $user->teaching_city = $data['teaching_city'];
    $user->min_class = $data['min_class'];
    $user->max_class = $data['max_class'];
    $user->trained= $data['trained'];
    if($user->trained == '2'){
    $user->skill = '';
    }else{
    $user->skill = $data['skill'];
    }
    $user->save();

    return response()->json(['success'=>'1','post'=>'Teaching City updated !'],  $this->successStatus); 

}
Activity icon

Replied to Invalid Argument Passed

have seen the php documentation page already and syntax is as it is but it not work in laravel api and gives error invalid argument passed

it passed the values to the like this as guiven below and give error implode(): Invalid arguments passed implode ',', '2556

Activity icon

Replied to Invalid Argument Passed

$user->skill = implode($data['skill']); it gives error invalid argument passed

Activity icon

Replied to Invalid Argument Passed

@MVD - implode($data['skill'])

Activity icon

Started a new Conversation Invalid Argument Passed

implode not work in laravel api