Abhilash19

Abhilash19

Member Since 2 Years Ago

Experience Points 1,690
Experience Level 1

3,310 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.

17 May
1 year ago

Abhilash19 started a new conversation Save Text From Notes To .txt File

Hi all,

I've task that I need to create a text box(like notepad) and below need to have a save button. When I type and click the button, The text should be saved as .txt file. And when I open that file it should have a unique URL. I'm new to laravel. Can anybody help me on this?

30 Jan
1 year ago

Abhilash19 started a new conversation Using Javascript Confirmation Box In Laravel5.4

I've two buttons say send and cancel. Whenever I click any button among them, I should get confirmation box with ok and cancel options. I tried using confirmation box but not working. i can do it using ajax but I waana choose confirmation box. Can anyone help me out??

11 Jan
1 year ago

Abhilash19 started a new conversation How To Use Request::is('something') With Id

I've some data from different methods from controllers to be displayed on the same page. I hope this task can be done using @if(Request::is('routename')) but in my case I wanna check the route with id. I'm using @if(Request::is('routename/{id}')) but that is not working. Can anybody help me out?? Thank you.

06 Jan
1 year ago

Abhilash19 started a new conversation How To Give Dynamic Id For Button Tag When Using In Foreach Loop.

When I execute below code, it displays list of users from database and Request button in front of them. The task is when I click on button the values should be saved in the database. But In my code it's working only for top button. I think I need to give dynamic id to button tag. But how can I do that? can Anyone help?

@foreach($AllAttendees as $AllAttendee) 
<button class="btn btn-success" id="undo" value="{{$AllAttendee->id}}">Request Meeting</button>
    <button class="btn btn-warning" id="done">Request       Sent</button>
@endforeach

below is ajax code

<script type="text/javascript">
  $('document').ready(function(){
    $('#undo').click(function(){
      $(this).hide();
      $('#done').show();

      var requested_to = document.getElementById('undo').value;

      $.ajax({
        type: "post",
          url: '/requestmeet/{{$id}}',
          data:{requested_to:requested_to,"_token": "{{ csrf_token() }}"},
          dataType:"json",
          success: function (data) {
              console.log(data);
              //$( "#disp" ).append( "<strong>"+data.description+":</strong></br>");
              //document.getElementById('disp').innerHTML=data.description;
          },
          error: function (data) {
              console.log('Error:', data);
          }
      });
    });
  });
</script>
02 Jan
1 year ago

Abhilash19 left a reply on Chrome Blocked Localhost With Error Your Connection Is Not Private

@Dunsti Thank you. I've changed my project extension from .dev to .test. valet domain test changes extension from .dev to .test. And thank you all for your time n help.

20 Dec
1 year ago

Abhilash19 left a reply on How To Use Where Condition In Joins When Using More Than Two Table

@Snapey tables will be having multiple rows. Right now I've one row in attendee and speaker tables. And partners table is having two rows

Abhilash19 started a new conversation How To Use Where Condition In Joins When Using More Than Two Table

I've four tables attendees partners speakers events. Here events table is the parent table. I mean other three tables are having foreign key event_id from events. I want to fetch first_name from child tables. I'm using joins here. My controller code is show below

public function show($id)
     {
    $disp = DB::table('events')
    ->join('attendees','events.id','attendees.event_id')
    ->join('partners','events.id','partners.event_id')
    ->join('speakers','events.id','speakers.event_id')
    ->select('attendees.first_name as atts','partners.first_name as partName','speakers.first_name as speakName')->get();
    return view('ConferenceDetails',['disp'=>$disp,'id'=>$id]);
    } 

i'm passing id from blade say id is 4 and below is code from blade

<div class="col-sm-10"> 
  @foreach($disp as $check)
  <p>{{$check->atts}}</p>
  <p>{{$check->partName}}</p>
  <p>{{$check->speakName}}</p>
  @endforeach
</div>

here my problem is I'm first_name from all rows. I want to fetch first_name from only those rows, whose event_id is 4. how can I use where clause here? My current output is as show below

john
andrew
keety
john
smith
keety

partners table has two rows so the foreach loop using twice.

19 Dec
1 year ago

Abhilash19 started a new conversation How To Get Data From All Tables Within A Database Based On Id

In my database I have 8 tables with a foreign key column event_id and user_id in some of the tables among 8. Now I wanna get all users related to an particular event_id. I mean I'll get event_id from blade. How can I match this id in controller? how can I get user details for particular event?

18 Dec
1 year ago

Abhilash19 left a reply on Chrome Blocked Localhost With Error Your Connection Is Not Private

@phpMick I am using laravel valet as @Dunsti told. That my project name is carservices.dev. I'm not having problem only in running project. when I run "phpmyadmin.dev" I will get the same error.

Abhilash19 started a new conversation Chrome Blocked Localhost With Error Your Connection Is Not Private

Suddenly google chrome blocked localhost. I can not able to use phpmyadmin and my project. It's supporting remaining sites perfectly. Whenever I run phpmyadmin or project it show error as

Your connection is not private "NET::ERR_CERT_COMMON_NAME_INVALID"

I tried a lot to solve but none of suggestions working. Anybody please help.

12 Dec
1 year ago

Abhilash19 left a reply on Laravel Blade Check Whether Authenticated User Exists In Db

@bobbybouwmann when authenticated user clicks on id "deligate" , it should replace with id "unfollow". After refreshing the page he should see id "unfollow". How can I check this using if condition?

Abhilash19 started a new conversation Laravel Blade Check Whether Authenticated User Exists In Db

I'm working on user request model. According to the below mentioned code , if the authenticated use id exists in database, he should see thumbs-up(font awesome), suppose if not he should see request button(font awesome). I'm using ajax and JQuery, Everything working fine but I'm not getting how to check it using if condition. someone help me Plz..


<div class="col-sm-1 follows" style="padding:0px">
        @if($followCount->user_id != Auth::user()->id) 
        <h2 id="deligate" value="1"><i class="fa fa-user-plus" data-toggle="tooltip" title="follow" ></i> 
        </h2>
        @else(!empty($followCount->user_id)) 
        <h2 id="unfollow"><i class="fa fa-thumbs-up" data-toggle="tooltip" title="unfollow" style="display:none;color: #ff9933" id="test"></i>
        </h2>
        @endif
      </div>  

29 Nov
1 year ago

Abhilash19 started a new conversation How To Display Count() Results From Controller In Blade

I want to get the count of comments for a photo. I'm using count method in my controller as below

public function index($id)
    {
      $showCounts = PhotoComment::where('photo_id',$id)->count();
      return view('PhotoFeed.PhotoDetails',['showCounts'=>$showCounts,'id'=>$id]);
    }

how can i receive it in my blade? below is my blade code

<div class="col-sm-3" style="text-align:center">
      @for($i = 0;$i < 10; $i++)
      <p>{{$i}}</p><h4>Comments</h4>
      @endfor
    </div>
14 Nov
1 year ago

Abhilash19 left a reply on Redirect User To Previous URL After Login Into System

@WeeHong I did not get your question clearly. Check whether below code helps for you, if not wait for others to reply. but It's working fine for me.

return redirect()->action('[email protected]',['id'=>$id]);

in action part, mention the controller and method name where you want to redirect.

08 Nov
1 year ago

Abhilash19 left a reply on Valet PhpMyAdmin

@toyjack Can I get my databases back? which I had in my phpmyadmin?. Actually I changed my macbook's user name. It asked for system restart, after restarting phpmyadmin not working. I don't know whether it's crome error or what. Please help me out.

This site can’t be reached

127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
06 Nov
1 year ago

Abhilash19 left a reply on How To Hide A Div On A Condition

@bobbybouwmann thank u frnd. I had the same problem n it's solved now

31 Oct
1 year ago

Abhilash19 started a new conversation How To Use $request->all() In Laravel 5.4 To Update Form Data

I'm trying to update the user information. I wanna update entire data using $request->all() . I'm not getting error, But the submitted data is not saving in database. Please check my code. Please tell me what mistake I've done.

  $speakUpdate  = Speaker::where('id',$id)->first();
        if ($speakUpdate) {
           $speak = $speakUpdate->update($request->all());
        }

Below is the form data

<form action="{{url('attendeeChange',[$editSpeaker->id])}}" method="post" name="spea"enctype="multipart/form-data">
    First Name:<input type="text"  value="{{$editSpeaker->first_name}}" placeholder="first name"><br>
    <button value="submit">Save</button>
  </form>
05 Oct
1 year ago

Abhilash19 left a reply on How To Retrieve Image From Database And Display It On View Using Blade In Laravel

@lyleyboy thanks for replying. I want to fetch all the images from the table and display it on the view.

public function index()
  {
    $fetches      = Event::all();
    return view('home',['fetches'=>$fetches]);
  }

in my view I'm retrieving this as below

<table style="border:1px solid black; width:100%">
          @foreach ($fetches as $num)
          <tr>
            <td><img width="30%" class="img-circle" src="{{ URL::asset('storage/images'.$num->images) }}"></td>
          </tr>
          @endforeach
        </table>

apart from images, remaining columns are displaying on the view.

27 Sep
1 year ago

Abhilash19 started a new conversation How To Retrieve Image From Database And Display It On View Using Blade In Laravel

I'm using

php artisan storage:link. for storing images in database. As expected I can store images in the database. but I've a problem in retrieving the stored image. I'm retrieving image like this . I'm not getting any error but image is not displaying on the view. I'm learning laravel. Can anyone help on this please...

14 Sep
1 year ago

Abhilash19 started a new conversation How To Avoid Data Disappearing After Page Refresh In Laravel Ajax??

I'm using ajax to store and fetching data from database. The functionality is working fine. But the problem is when i refresh the page data will dis appear. I'm fetching data from database and displaying it on blade template using jquery append. Can anyone help ,e on the with any example??

08 Sep
1 year ago

Abhilash19 left a reply on Uploading Image Using Php Artisan Storage:link

@rumm.an $image = $request->file('images')->store('public/images'); $add->images = str_replace('public/images/','',$image);

Abhilash19 started a new conversation Uploading Image Using Php Artisan Storage:link

I'm using "php artisan storage:link" for storing image files into my database table. I am using the same database for two projects. The problem is I can upload image from only one project. But when I try the same with other project, image will not insert and also I can't find image name in my project storage/app/public. And I am not getting any errors. Apart from image, other data will store in the table. Can anyone help what is my mistake? I'm new to laravel.

14 Aug
2 years ago

Abhilash19 started a new conversation How To Validate Foreign Key With Unique Constraint?

Hi all. I have two tables "users" and "events". The events table has a foreign key "user_id" from users table. There is a one-to-one relationship between both the tables. And the user_id in the events table should be unique. Can anyone help???

18 Jul
2 years ago
17 Jul
2 years ago

Abhilash19 left a reply on Sending Email With Laravel!!

Yup.. But it is bit slow while sending mail to multiple users. Or you can go with mail gun as @martinbean suggested.

Abhilash19 left a reply on How To Get The User Id From Token While Using Laravel Passport

@parival019 I tried the same. I'm getting error like Route [login] not defined. When I make Get request I am getting user details.

Abhilash19 left a reply on Sending Email With Laravel!!

Using smtp you can do it. !

Abhilash19 started a new conversation How To Use Entrust With Passport And Postman In Laravel?

I'm creating Api's for a mobile device. I'm using Entrust to assign Roles and Responsibilities to the users in my database. For api calls, I'm using postman. For api Authentication I have used passport. When I make a post request with password grant, I am getting access token and if I run this access token with Bearer, I am getting user details. But Entrust is not working for this authenticated user. I'm getting 401 access forbidden error.

->How Users should register from Postman as I am not using front End? ->I am getting user details after sending GET request with generated access token. It means user is authenticated? ->If user is authenticated means how can I use his Id for assigning Roles and Permission?

Entrust works super fine when I run make:auth. But using postman how can I do this? I'm new to laravel. Can Anybody help me out on this???

05 Jul
2 years ago

Abhilash19 left a reply on How To Get The User Id From Token While Using Laravel Passport

Stuck with same problem. I wanna fetch authenticated username to controller. I am using postman, and user is authenticated using passport. I tried it in template its working fine. But not getting how to achieve through postman.