raviawasti

raviawasti

Member Since 10 Months Ago

Experience Points
5,190
Total
Experience

4,810 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
8
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 2
5,190 XP
Oct
01
1 month ago
Activity icon

Started a new Conversation Is It Possible To Make Vedamo.com(live Classroom) Like Platform In Laravel?

i want to make virtual classroom platform with the help of laravel , is it possible and what are the different kind of technology should i have to use along with laravel with servers and every information that i need , can you anyone share with me please ?

Sep
17
1 month ago
Activity icon

Started a new Conversation When I Open These Both Url Is Working And Another Is Not Working In Laravel

Route::get('child-admission-for-{class}','[email protected]')

┬áRoute::get('child-admission-for-{subject}','[email protected]')

Aug
27
2 months ago
Activity icon

Started a new Conversation How Can I Use Two Table For Laravel Notification?

How can i use two table for laravel notification one for user and school

Aug
20
2 months ago
Activity icon

Started a new Conversation How To Get The All City Data Via Json_decode In Laravel

how to get the all city data via json_decode in larvelCity table where are id and city name 2=Newyork 4=New Delhi 5=Tokyo

foreach (json_decode($cities) as $city) {
                  $cities = App\City::where('id', $city)->first()->slug;
                  }

Print_r($cities);
exit();  ```

i want to get all the data of city via json_decode but when i follow above code i am getting the last city name only( New delhi)
want to get like this New-York-New-Delhi-Tokyo
Aug
13
2 months ago
Activity icon

Replied to How To Show 1 Job After Every 5 Posts In Vuejs Laravel?

Thank you for your valuable suggestion..Mr RObstarrrrrrrrrrr

Activity icon

Replied to How To Show 1 Job After Every 5 Posts In Vuejs Laravel?

I am fresher to vuejs and i dont know much about vuejs..ok If you dont the know why are you whispering here..i dont need your suggestion, if you know the answer comment below , if not go and reply to others question, in the same you you had answered me.. hope you understand mr ROBStarrrrrrr

Activity icon

Replied to How To Show 1 Job After Every 5 Posts In Vuejs Laravel?

i am getting all post by the help of laravel api but i dont know how to get one job after every 5 posts , guide me please

public function Allposts()



  $result = Post::with('User','Like')->where('status',1)->orderBy('created_at','desc')->paginate(10);

   return response()->json($result);


} 
Activity icon

Replied to How To Show 1 Job After Every 5 Posts In Vuejs Laravel?

i had not tried anything yet..can you help me out please

Aug
12
3 months ago
Activity icon

Started a new Conversation How To Show 1 Job After Every 5 Posts In Vuejs Laravel?

i have posts table(for discussion forum) and jobs table(To post jobs), in posts table i am saving all the recent post by users and if the users have some jobs/openings they are saved in jobs table , i am already showing all posts by the help of vuejs (laravel API), my question is i want to show one jobs which has been posted recently after every 5 posts.. how can i do it in laravel with the help of vuejs.. please guide

Aug
10
3 months ago
Activity icon

Replied to How Can I Sort User With Highest Number Of Post In Laravel?

i want to show just name not the entire the user fileds

Activity icon

Replied to How Can I Sort User With Highest Number Of Post In Laravel?

sorry there is relationship but i had not mentioned now i had updated the code

Activity icon

Started a new Conversation How Can I Sort User With Highest Number Of Post In Laravel?

I have two table one user and other posts """ fields user: id, name, city, password etc Posts: id, user_id, post_id, title,content etc

I have to show 3 user who have highest number of post with just its name """

Aug
08
3 months ago
Activity icon

Replied to How Can I Use Two Different Template For Same Route In Laravel

wont this affect my seo, actually i am showing different header and footer for loggedin user and not logged in user..

Aug
07
3 months ago
Activity icon

Started a new Conversation How Can I Use Two Different Template For Same Route In Laravel

How can i use two different template for same route in laravel one before login and one after login and does it affect my seo

Activity icon

Started a new Conversation I Want To Sort The Value According To The Points Value In Laravel

[{"user_id":30894,"point":400},{"user_id":35843,"point":100},{"user_id":35901,"point":800}]

how can i do it

Aug
06
3 months ago
Activity icon

Started a new Conversation How Can I Show A Modal With Some Data For Single Time On Page Load Laravel

how can i show a modal with some data for single time on page load laravel

Activity icon

Replied to How To Restrict A User To Post Daily 10 Question Only In Laravel

i have post table where i save id, user_id, title,content created_at and updated_At

onec user can post multiple a day then how can i do this in this scenario, please explain

Activity icon

Started a new Conversation How To Restrict A User To Post Daily 10 Question Only In Laravel

how to restrict a user to post daily 10 question only in laravel

i wanted to let the user post only post 10 question daily

Jul
31
3 months ago
Activity icon

Started a new Conversation How Can I Change Credit_start_date And Credit_end_date Automatically And Increase Credit For User In Laravel.

'''i have two table

users table: id, name, address etc

subscription:id, user_id,credit_no,credit_start_date,credit_end_date etc

I am giving every user one credit to buy 1 exam every month, but if user want to buy more than one exam in the same month he have to pay for it or have to wait another month to get free credit.

here is subscription table: id: 1, user_id: 234, credit_no :1, credit_start_date:2019-03-14 ,credit_end_date:2019-04-14 '''

How can i change credit_start_date and credit_end_date automatically and increase credit for user in laravel.

Jul
27
3 months ago
Activity icon

Started a new Conversation How To Load After Liking Post In Vuejs(laravel) Without Refreshing Page Using Infinite Scroll? Help Me Fix This Issue Laravel Or Vuejs Developer Please

i am able to see all the data after posting data, liking post , commenting on post without page refresh but after using infinite scroll in vuejs, infinite scroll working perfectly fine but not able to see post after liking ,commenting , posting..i have to refresh every time to see the comment/like on post. How can i see ontime like without page refresh ?Please help me figure this out anyone


    el: '#app',

data() {

  return {

  posts: [ ],

  page: 1,
  
    };
  },

 created(){

this.allposts();

    },
}
 methods:{

Before using infinite scroll on app.js


 allposts(){

               axios.get('http://localhost/project/posts')

                .then((response) => {
                    this.posts = response.data;
                    Vue.filter('myOwnTime', function(value){
                    return moment(value).fromNow();
          });
                })
                .catch(() => {
                    console.log('handle server error from here');
                });
    },

After using  vue infinite scroll

https://peachscript.github.io/vue-infinite-loading/guide/start-with-hn.html

 allpost($state) {

      axios.get('http://localhost/project/posts', {

        params: {

          page: this.page,


        },
      })
      .then(({ data }) => {
        if (data.data.length) {
          this.page += 1;
          this.posts.push(...data);
            Vue.filter('myOwnTime', function(value){
                    return moment(value).fromNow();
          });
          $state.loaded();
        } else {
          $state.complete();
        }
      });
    },


like function is same for both 

       likePost(id){
     axios.get('http://localhost/project/posts' + id)     

          .then(response => {
            console.log(response); 
                    this.allposts();//
          })
          .catch(function (error) {
            console.log(error);
          });
   },


} ```

How can i see ontime like without page refresh ?Please help me figure this out
Jul
26
3 months ago
Activity icon

Replied to How To Show Only User Id And Name In Post , Comment And User Relationship Laravel?

You are awesome , your answer solved my all issues , can you help me to apply infinite scroll in in laravel vuejs please

Activity icon

Started a new Conversation How Can I Use Paginate In Laravel Vuejs From The Top?

I am able to sucessfully paginate in laravel vuejs by the help of this turorials https://medium.com/introcept-hub/create-pagination-component-using-laravel-and-vue-js-e5709aac2724

I am showing 10 items in single page, My issue is when i click on paginate button 2 it is working but it doesn't loads from the top means from data no 11

Jul
25
3 months ago
Activity icon

Replied to How To Show Only User Id And Name In Post , Comment And User Relationship Laravel?

Thanks , for your reply..

I want to hide only those comments where status is 0 , and if status is 1 i want to show but a/c to your query when my comment status is 0 it automatically hides its post also..is there any way to resolve it please

Jul
24
3 months ago
Activity icon

Started a new Conversation How Can I Use Pagination In Laravel Vuejs?

Route::get('posts', '[email protected]');

public function Allposts() { return Post::with('Comment.User','User','Like','Subject') ->where('status',1)->orderBy('created_at','DESC') ->get(); }

Here is my view ( vue code in laravel blade) where i am using this localhost /posts API

@{{post.user.name}}

allpost(){

axios.get(this.bUrl +'/posts') .then(response=> { this.posts=response.data; Vue.filter('myOwnTime', function(value){ return moment(value).fromNow(); }); }) .catch(function (error) { console.log(error);//if error }); },

Activity icon

Replied to How To Show Only User Id And Name In Post , Comment And User Relationship Laravel?

Thanks it solved my problem but the thing is now i want to show only those comments whose statu is 1 , can you help me out please

Activity icon

Started a new Conversation Is There A Way For Web Push Notification Like One Signal For Every Action In Laravel Such As Like, Comment, Asnwer

Is there a way for web push notification like one signal for every action in laravel such as like, comment, asnwer

Activity icon

Started a new Conversation How To Show Only User Id And Name In Post , Comment And User Relationship Laravel?

I have 3 table post, comment, and user:-

      post table field  is id , user_id, title , and content

       Comment table where field are: id , Post_id,user_id, content

       User table where field are: id , name,phone, email, dob, address etc

       Here is route:-

         Route::get('posts', '[email protected]');

public function Allposts() { return Post::with('User','Comment') ->where('status',1)->orderBy('created_at','DESC') ->get(); }

         Post.php model:-
          public function User(){

            return $this->belongsTo('App\User')->select(['id', 'name',]);
          }

          public function Comment(){
          return $this->hasMany(Comment::class,'post_id');
          }


      $post = Post::with('user','subject','Like','Comment')->where('slug',$slug)->first();


      I have 3 table post, comment, and user:-
      post table field  is id , user_id, title , and content
       Comment table where field are: id , Post_id,user_id, content
       User table where field are: id , name,phone, email, dob, address etc

       Here is route:-

         Route::get('posts', '[email protected]');

public function Allposts() { return Post::with('User','Comment') ->where('status',1)->orderBy('created_at','DESC') ->get(); }

         Post.php model:-
          public function User(){

            return $this->belongsTo('App\User')->select(['id', 'name',]);
          }

          public function Comment(){
          return $this->hasMany(Comment::class,'post_id');
          }

My issue when clicking on localhost/posts i am getting all the post data with user detail and comment data with user details , For post i am getting only user id and user name but for comment i am getting all the user details such as id, name , dob, email, But i want user id and name in both posts and comment ..

Jul
18
3 months ago
Activity icon

Replied to Laravel Dynamic Slider

sfdasas

Jul
16
3 months ago
Activity icon

Started a new Conversation How To Use 1 ,2 3 In Slug Laravel ?

i have a post table where i am saving id, name , slug etc like this

id:1, name:How to become a Tutor?, slug : how-to-become-a-tutor

Now if i want to save another data with same name like this

id:2, name:How to become a Tutor?, slug : how-to-become-a-tutor-1(i want to add integer 1 in slug like this)

, if same question asked again i want to add how-to-become-a-tutor-2

Activity icon

Started a new Conversation How Can I Change Class And Style On InsertImage In Summernote Editor.

I used insertImage method in summernote editor in laravel. Initially, Added style attribute as "width:600px;" on img tag. I'd like to remove this style attribute and Added some class and alt value. Is it possible?

Activity icon

Started a new Conversation How To Avoid Image Width And Height In Summernote Editor In Laravel?

While using summernote in laravel , i was trying to save a image, it was saved perfectly but my issue is summenote automatically adds width to my image, but i want save image without width :-

but i want save image without width

, anyone help will be very helpful

Jul
15
3 months ago
Activity icon

Replied to How To Show Count Of All Subject With Slug From Post Table?

Column not found: 1054 Unknown column 'subjects.post_id' in 'where clause' (SQL: select posts., (select count() from subjects where posts.id = subjects.post_id) as subjects_count from posts) (View:

Activity icon

Started a new Conversation How To Show Count Of All Subject With Slug From Post Table?

I have two table one posts and second subject

posts table : id, subject_id, post_name , etc

subject table :id, subject_name, slug etc

Subject table content

id :1, subject_name :Science , slug :science

id :2 subject_name :Social Science ,slug:social-science

I am saving subject id in posts table like this

id -1, subject_id 2, post_name :how to become a teacher.

id -2, subject_id 1, post_name: how to learn english.

Now my problem is, i want to show count of posts for every subject like this

Science subject 10 posts see all

Math subject 13 posts see all

Social studies subject 2 posts see all

Jul
12
4 months ago
Activity icon

Started a new Conversation Can I Define Dependency Injection In Any Class?

how to define dependency

Jul
06
4 months ago
Activity icon

Started a new Conversation Vuejs Relationship Is Working In Blade But Not On Vuejs

normal view working

@foreach($posts as $post)

@foreach($post->comment as $comment )

{{ $comment->user->name }} i ma getting user name

@endforeach

@endforeach

vuejs component

@{{comment.user.name}} -i am not getting user name

Activity icon

Replied to How Can I Get The Slug Passed In View For Vuejs Components ?

how can i get the slug of this route

Route::get('questions/{slug}', '[email protected]');

to app.js

app.js var app = new Vue({ el: '#app', data() { slug: ' ', singlePosts:[], };

so that i will pass that slug to get the details from this api route

Route::get('post/singlePage/{slug}', '[email protected]');

singlePageApi(){

axios.get(this.bUrl +'/post/singlePage/' + this.slug) .then(response=> { this.singlePosts=response.data; //we are putting datat into our data

})

},
Activity icon

Started a new Conversation How Can I Get The Slug Passed In View For Vuejs Components ?

Route::get('questions/{slug}', '[email protected]');

//Api for single page Route::get('post/singlePage/{slug}', '[email protected]');

public function postSingle($slug){

      if(Post::where('slug',$slug)->exists()){
      $post = Post::where('slug',$slug)->first();
      }else{
        return view('404');
      }

      return view('frontend.candidates.socialmedia.Singlepost',compact('post'));
    }



       public function postSingleAPI($slug)
{

$data['posts'] = Post::where('slug',$slug)->first(); return $data;

}

app.js var app = new Vue({ el: '#app', data() { singlePosts:[],

 };

created(){ this.singlePageApi(); },

 methods:{
 singlePageApi(){

axios.get(this.bUrl +'/post/singlePage/' + this.slug) .then(response=> { this.singlePosts=response.data; //we are putting datat into our data

}) .catch(function (error) { console.log(error);//if error }); }, } }

Singlepost.blade.php

@{{singlePosts.body}}
Jul
05
4 months ago
Activity icon

Replied to Shall I Have To Install Nodesjs In Server Or Laravel Project Folder

as i only added some features of vuejs such as add post , comment post ,like edit in my laravel project.. i had completed this modules in localhost by installing nodesjs first and then vuejs, it is workingin fine on locahost but to deploy that modules in digitalocean shall i have to install nodejs or not

Activity icon

Started a new Conversation Shall I Have To Install Nodesjs In Server Or Laravel Project Folder

Shall i have to install nodesjs to install vuejs in server or laravel

Jul
03
4 months ago
Activity icon

Replied to Disable All Textarea In Loop While Commenting On A Post In Vuejs

@JOHNBRAUN - Relationship in Post.php

public function Comment() { return $this->hasMany(Comment::class, 'post_id','id')->orderBy('id','desc');

}
@{{post.content}} Comment @{{comment.content}} Comment

app.js code

var app = new Vue({ el: '#app', data() { return { title: '', content:'', posts:[], commentdata:{}, commentBoxSeen: false, }; },

});

Activity icon

Started a new Conversation Disable All Textarea In Loop While Commenting On A Post In Vuejs

Whenever i want to comment by clicking on comment Button all the textarea of post opens at a time how to only one texarea at a time

here is view

@{{post.content}} Comment @{{comment.content}} Comment

code

var app = new Vue({ el: '#app', data() { return { title: '', content:'', posts:[], commentdata:{}, commentBoxSeen: false, }; },

});

Jul
01
4 months ago
Activity icon

Started a new Conversation How To Use Summernote Editor In Vuejs Laravel

i want to integrate summernote in vuejs

Activity icon

Started a new Conversation How To Show Like ,comment ,post Like Count In Vuejs Foreeach Loop Laravel

how can i show like ,comment count in vuejs foreach loop laravel

i am able to show my like count in larave blade like this

@foreach($comments->take(2) as $comment )

$commentlikeCount= App\Like::where(['comment_id'=> $comment->id])->count();

@endforeach

but no any clue in vuejs components, please help