LearnHunter

LearnHunter

Dhaka

Hire Me

Member Since 6 Months Ago

Experience Points 600
Experience
Level
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

10 Oct
2 months ago

LearnHunter started a new conversation Failed To Authenticate On SMTP Server With Username "[email protected]" Using 2 Possible Authenticators. Authenticator LOGIN Returned Swift_TransportException

Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators. Authenticator LOGIN returned Swift_TransportException: Expected response code 235 but got code "535", with message "535 Incorrect authentication data

30 Sep
2 months ago

LearnHunter left a reply on Not Showing Image By Id With Laravel And Ajax

Why it's show same image. image location: public/profile/121244.png nid location: public/nid/12341.png but when i click show it's return same image

        <div class="col-lg-6 col-md-6">
           <img id="user_image" src="" class="card-img-top" />
         </div>
        <div class="col-lg-6 col-md-6">
          <img id="nid_image" src="" class="card-img-top" />
        </div>

  function showData(id) {
          $.ajax({
              url: "{{ url('admin/users') }}" + '/' + id,
              type: "GET",
              dataType: "JSON",
            success: function(data) {
              $('#single-data').modal('show');
              $('.modal-title').text(data.name +' '+'Informations');
              $('#contactid').text(data.id); 
              $('#fullname').text(data.name);
              $('#contactemail').text(data.email);
              $('#contactnumber').text(data.phone);
              $('#whoreference').text(data.who_reference);
              $('#myreference').text(data.my_reference);
              $('#user_address').text(data.address);
              $('#user_create').text(data.created_at);
              $('#user_image').attr('src', data.image);
              $('#nid_image').attr('src', data.nid);
            },
            error : function() {
                alert("Ghorar DIm");
            }
          });
        }  

LearnHunter left a reply on Not Showing Image By Id With Laravel And Ajax

#tykus

http://localhost/multiauth/admin/1538047519.png

it show's these

 but it will be
 
http://localhost/multiauth/public/profile/1538047519.png
what can i do now

LearnHunter started a new conversation Not Showing Image By Id With Laravel And Ajax

image path are insert into database ``

//show single data ajax part here function showData(id) { $.ajax({ url: "{{ url('admin/users') }}" + '/' + id, type: "GET", dataType: "JSON", success: function(data) { $('#single-data').modal('show'); $('.modal-title').text(data.name +' '+'Informations'); $('#contactid').text(data.id); $('#fullname').text(data.name); $('#contactemail').text(data.email); $('#contactnumber').text(data.phone); $('#whoreference').text(data.who_reference); $('#myreference').text(data.my_reference); $('#user_address').text(data.address); $('#user_create').text(data.created_at); $('#user_image').val(image); }, error : function() { alert("Ghorar DIm"); } }); }

``

04 Sep
3 months ago

LearnHunter left a reply on Laravel Installation On Centos 6.8

you need to get permission from su

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

write this command i think it's work.


LearnHunter left a reply on I Have A Problem When Upgrade Laravel 5.7 From 5.6

if you want to update yourproject on laravel 5.7 your many package does not work .cause laravel 5.7 isn't officially launched.

LearnHunter left a reply on Present Location Of A User.

you can use geo location API

LearnHunter left a reply on Upgrading Laravel 5.0 To 5.6

you can't upgrade your project from laavel 5.0 to 5.6
just try to update one by one version like first 5.0 to 5.1 next 5.1 to 5.2 then 5.2 to 5.3.

LearnHunter left a reply on One To One Chat In Laravel Using Websocket

first registering channel in laravel and make it available throught redis in node of you can just sent user id from client emit and also check the if the id has been changed by thug user or not buy calling an event where ther server side would get his id wherer he cnt change then sent it from redis to node and check if the both id is equal then he meant to recirve the message

LearnHunter left a reply on Data Is Not Saving In Database

just use laravel eloquent 
$data= dd($request->all();
then save it. why you write many lines.

LearnHunter left a reply on Can I Zip Or Rar Images Without A Package?

If you want to zip or rar file to image you can use POP (Procedural PHP). just goto php.net and search that what you want.
13 Aug
4 months ago

LearnHunter left a reply on Class 'App\Http\Controllers\Redirect' Not Found

use Illuminate\Support\Facades\Redirect;  on top of the controller

12 Aug
4 months ago

LearnHunter left a reply on How To Go Directly To View With URL?

just write your routename/pathname

11 Aug
4 months ago

LearnHunter left a reply on Looping Through Validation Messages And Flash It Using Toastr

<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/css/toastr.css" rel="stylesheet"/>


 <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/js/toastr.js"></script> 
<script>
      @if(Session::has('messege'))
        var type="{{Session::get('alert-type','info')}}"
        switch(type){
            case 'info':
                 toastr.info("{{ Session::get('messege') }}");
                 break;
            case 'success':
                toastr.success("{{ Session::get('messege') }}");
                break;
            case 'warning':
                toastr.warning("{{ Session::get('messege') }}");
                break;
            case 'error':
                toastr.error("{{ Session::get('messege') }}");
                break;
        }
      @endif
    </script>

in controller write code simillar: for example:

if ($glryimg) {
                    $notification=array(
                    'messege'=>'Successfully Cover Photo Changes!',
                    'alert-type'=>'success'
                    );
                    return redirect()->route('home')->with($notification);

LearnHunter left a reply on Form Submission

I think It's totally correct.

LearnHunter left a reply on Sweet Alert Worked, But It Closes Within Seconds Why?

 <script src="{{asset('https://unpkg.com/sweetalert/dist/sweetalert.min.js')}}"></script>
use this script on layouts file






LearnHunter left a reply on How To Save An Image And Retrieve It In View Form In Laravel

{{ asset('img/myimage.png') }} OR {{ HTML::image('img/myimage.png', 'a picture') }} OR {{URL::to('public/img/myimg.png')}}

LearnHunter left a reply on How To Save An Image And Retrieve It In View Form In Laravel

$data['id'] =$request->id; $image=$request->file('image'); if ($image) { $image_name=$data['id']/or you can fixed the name/.".jpg"; $upload_path='public/photo'; $success=$image->move($upload_path,$image_name); }

07 Aug
4 months ago

LearnHunter left a reply on Retrieve Records Within Business Hours Only

use where between clause like

Product::whereBetween('created_at', ['write your starting time']) ->whereBetween('created_at', ['write your Enfing time']) ->get();

LearnHunter left a reply on Carbon, Method GetTimestamp Does Not Exist.

"require: : { "nesbot/carbon": "1.22.*" // use it on composer.json file or update your composer by this command: composer update

LearnHunter left a reply on Get Top Review Products?

using groupBY() in your query. I think you can solve your problem

LearnHunter left a reply on Laravel 5.3 : Method [validate] Does Not Exist.

use Illuminate\Foundation\Validation\ValidatesRequests;

class RegisterController extends Controller { use ValidatesRequests;

LearnHunter left a reply on Route MethodNotAllowedHttpException

Fisrt check your route that are you using POST method. if you use post method then use it on your form. if not working don;t worry run this command. artisan dump-autoload

06 Aug
4 months ago

LearnHunter left a reply on Laravel 5.3 : Method [validate] Does Not Exist.

$this->validate($request, [ 'email' => 'required|email', ]);

use like an array. example

03 Aug
4 months ago

LearnHunter left a reply on Vue.js 2 And Laravel 5.3 Blank Page

just go to your project directory example: cd laravelvue then write this command npm install laravel-elixir-vue-2 i hope it will solve your problem

04 Jun
6 months ago

LearnHunter left a reply on Localhost Works But Server Show Error

Clear you cache run this command.

php artisan cache:clear