Tahsan

Tahsan

Member Since 4 Years Ago

Experience Points 6,255
Experience Level 2

3,745 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 10
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.

20 Apr
3 months ago

Tahsan left a reply on Javascript Event Listener Value Does Not Working

need data value outside of the scope,not inside.

Tahsan started a new conversation Javascript Event Listener Value Does Not Working

show undefined

document.getElementById("wrap").addEventListener('click',()=>{
    var data=document.getElementById("wrap").checked; 
});
console.log(data);
13 Oct
9 months ago

Tahsan started a new conversation Can Not I Display Pivot Table In Blade Laravel

I have category_user pivot table I want to show my category_name in my blade.I tried something like below-

controller

$users = User::all();
return view('users.index', compact('users'));

blade

@foreach($users as $key =>$user )
<li>{{{{$user->categories->name}}</li>
@endforeach 

but it does not worked,showing error "Property [name] does not exist on this collection instance. "

25 Mar
1 year ago

Tahsan left a reply on Use Laravel-mix With Development Server

Did you install cross-env?

npm install cross-env --save-dev
07 Mar
1 year ago

Tahsan started a new conversation Laravel Route Does Not Working

I make a route something like bellow

Route::get('/sitemap.xml', '[email protected]');

it's show below error

The requested resource /sitemap.xml was not found on this server.
04 Mar
1 year ago

Tahsan left a reply on The Pivot Value Does Not Show On Blade

show errors

 Trying to get property of non-object 

Tahsan started a new conversation The Pivot Value Does Not Show On Blade

This is my controller-

public function index()
    {
        $ads =Ad::with('city', 'state')->whereStatus('1')->orderBy('id', 'desc')->get();

        return view('index', [
            'ads' => $ads,
        ]);
    }

this is my blade file

 @foreach($ads as $ad)
        <ul>
            <li>The list of product name is {{$ad->slug}} and city name {{$ad->city_name}}</li>
         </ul>
    @endforeach

here slug show properly but city name does not shown

26 Feb
1 year ago

Tahsan left a reply on After Adding Vuejs File Select2 Conflict

This is my blade file

<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Laravel</title>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">

    <!-- Styles -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
</head>
<body>
<div id="app">

    <form id="tagForm" method="get" action="result">

        <input type="text" v-model="slug">
        <select id="first" class="form-control select2" v-model="sub_category"  name="sub_category" >
            <option value="s">ass</option>
                    <optgroup label="Electronis">
                            <option value="e1" selected>e1</option>
                            <option value="e2" >e2</option>
                            <option value="e3" >eda3</option>
                    </optgroup>
        </select>
        <div class="focus-text">@{{bothAre}}</div>
        <button type="submit">sad</button>
    </form>

</div>

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script>

    $.noConflict();
    jQuery(document).ready(function($) {
        $('.select2').select2();
    });

</script>
<script>
    new Vue({
        el: '#app',
        data: {
            slug: '',
            sub_category: '',
        },
        computed: {
            bothAre: function link() {
                if (!this.slug == '') {
                    return  'Do you search '+ this.slug +' for your selected category '  + this.sub_category ;
                }
            }
        }
    });
</script>
</body>
</html>

There category value does not show

25 Feb
1 year ago

Tahsan left a reply on After Adding Vuejs File Select2 Conflict

all js files

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="{{ asset('assets/js/vendor/jquery-1.11.2.min.js') }}"></script>
<script src="{{ asset('assets/js/vendor/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/plugins/toastr/toastr.min.js') }}"></script>
<script src="{{ asset('assets/select2-3.5.3/select2.min.js') }}"></script>
<script src="{{ asset('assets/plugins/nprogress/nprogress.js') }}"></script>

Tahsan left a reply on After Adding Vuejs File Select2 Conflict

my blade file

@{{}}
            <div class="form-group">
                                    <select class="form-control select2"  v-model="sub_category" name="sub_category">
                                        <option value="">@lang('app.select_a_category')</option>
                                        @foreach($top_categories as $category)
                                            @if($category->sub_categories->count() > 0)
                                                <optgroup label="{{ $category->category_name }}">
                                                    @foreach($category->sub_categories as $sub_category)
                                                        <option value="{{ $sub_category->category_name }}" {{ old('category') == $sub_category->id ? 'selected': '' }}>{{ $sub_category->category_name }}</option>
                                                    @endforeach
                                                </optgroup>
                                            @endif
                                        @endforeach
                                    </select>
                                </div>

vue file

var app = new Vue({
            el: '#app',
            data: {
                sub_category: ''
            },
       

Tahsan started a new conversation After Adding Vuejs File Select2 Conflict

After adding vuejs file select2 conflict.it show

TypeError: $ is not a function

How can I fix it?

24 Feb
1 year ago

Tahsan left a reply on Vue Model Does Not Working

action value not changed

Tahsan left a reply on Vue Model Does Not Working

that was not changed

<form action="@{{pick_name}}" method="post">

Tahsan left a reply on Vue Model Does Not Working

can any one?

Tahsan started a new conversation Vue Model Does Not Working

I'm try some this like below.But it's now working,can any one help me?

<div id="app">

<form action="@{{pick_name}}" method="post">

  <input v-model="pick_name" name="@{{pick_name}}">
  <button type="submit">Submit</button>
</form>
</div>



<script>
    new Vue({
  el: '#app',
  data: {
    pick_name: 'Ash'
  }
})
</script>
23 Feb
1 year ago

Tahsan left a reply on Searching Url Route Problem

Suppose my route is `` Route::get("{city}", "App\Http\Cobtrollers\[email protected]");

 and input is something like below
        <div class="form-group">
                            <select class="form-control " name="city">
                                <option value="">Select City</option>
                                @foreach($categories as $category)
                                    <option value="{{ $city->city_name  }}" >{{ $city->city_name }}</option>
                                @endforeach
                            </select>
                    </div>
        <button class="btn btn-primary btn-block"><i
                                                class="fa fa-search"></i> @lang('app.filter')</button>
what will be the form action for it?

22 Feb
1 year ago

Tahsan started a new conversation Searching Url Route Problem

I want to some thing like that https://www.olx.in/chennai/cars/q-2222/ type of url for my search option.Can any one share me what is the coding technique of it on laravel

21 Mar
2 years ago

Tahsan left a reply on Mail Does Not Sending

same error show

Swift_TransportException in AbstractSmtpTransport.php line 383: Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials h23sm4079211qtc.49 - gsmtp
"

Tahsan left a reply on Mail Does Not Sending

@tomi yup

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=.....
MAIL_PASSWORD=.....
MAIL_ENCRYPTION=tls

19 Mar
2 years ago

Tahsan started a new conversation Mail Does Not Sending

I using mailtrap and I see the message on mailtrap but it does not send on mail.I'm using laravel-5.4 version.It's working on my localhost properly but live server have problem.Any solution?

06 Mar
2 years ago

Tahsan started a new conversation How To Get Input Old For Select Box

When I use v-model its does not catch old input value.Need help to solve this problem.Here is my code-

<select
                name="property-category"
                id="property-category"
                class="control-field"
                v-model="division"
                required
        >
            <option value="">Select your property Category</option>
            @foreach(App\Http\Utilities\Categories::all() as  $categories)
                <option value="{{$categories}}"
                        @if (old('agent') == $categories) selected="selected" @endif>{{$categories}}</option>
            @endforeach
 </select>
07 Feb
2 years ago

Tahsan left a reply on TokenMismatchException For Dropzone

have any solution?

Tahsan started a new conversation TokenMismatchException For Dropzone

I'm using dropzone but I have an error for token mis match exception.I'm trying something like this-

<form method="POST" action="/dashboard/post">
<div class="form-group col-lg-4">
                            <label class="control-label" for="title">Name:</label>
                            <input type="text" name="title" id="title" class="form-control input--style" 
                                   value="" required>
                        </div>
<div class="form-group col-lg-4">
                            <label class="control-label" for="details">details:</label>
                            <textarea type="text" name="title" id="title" required></textarea>
                        </div>
<div class="form-group col-lg-4 dropzone dropzone-previews" id="dropzone"></div>

<button class="btn" type="submit">Submit</button>

</form>

@section('dropzone')
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="{{url('js/dropzone.js')}}"></script>
    <script>
        Dropzone.autoDiscover = false;
        jQuery(document).ready(function () {

            $("div#dropzone").dropzone({
                url: "/dashboard/properties",
                headers: {
                    'X-CSRFToken': $('meta[name="token"]').attr('content')
                }
            });
        });
    </script>
@endsection

30 Jan
2 years ago

Tahsan left a reply on How Can I Hide My Database Name

public function store(Request $request)
    {
    $pro = $request->all();
        $pro->update([
            'client_name' => request('testName')
        ]);
}

Tahsan left a reply on How Can I Hide My Database Name

@SaeedPrez show FatalThrowableError

Call to a member function update() on array

Tahsan started a new conversation How Can I Hide My Database Name

I want to hide my database table name from html? For example:

<input name="testName" type="text">

I want to save this value where table name is "client_name"

28 Jan
2 years ago

Tahsan started a new conversation Vue Display My Data OrderBy Name

I just try to display my data orderBy name something like below

<li v-for="people in peoples | orderBy 'name' ">{{people.name}}</li>

I get an error like

- invalid expression: v-for="people in peoples | orderBy 'name' "

 
(found in root instance)

How can I solve this problem?

30 Dec
2 years ago

Tahsan started a new conversation Need Help To Open Encrypt File On Ubuntu 14

I have grub problem on my ubuntu 14.4 OS.Now I want to back-up my files but my files are encrypted.When I try to open folder by it's show "This location could not be displayed. You do not have the permissions necessary to view the contents of “...”. " Need help please...

08 Aug
2 years ago

Tahsan left a reply on Email Verification

thanks it's working now.:)

Tahsan left a reply on Email Verification

Yes it was

   public function setPasswordAttribute($password)
    {
        $this->attributes['password'] = bcrypt($password);
    }

Tahsan left a reply on Email Verification

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;

class PasswordController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Password Reset Controller
    |--------------------------------------------------------------------------
    |
    | This controller is responsible for handling password reset requests
    | and uses a simple trait to include this behavior. You're free to
    | explore this trait and override any methods you wish to tweak.
    |
    */

    use ResetsPasswords;

    /**
     * Create a new password controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest');
    }
}

Tahsan left a reply on Email Verification

$2y$10$bzZx7LX6xVdC/DgtiYrBL.1CCwENOgAFnvNdlHA6C8OERAbTq3MWu store something like that.I can not login with the old one.

Where I should used bcrypt?

Tahsan started a new conversation Email Verification

I'm trying email verification on laravel 5.2(https://laracasts.com/lessons/email-verification-in-laravel) It's working but problem is when I logout after reset password I can not access again by new password. What is the reason of it and how can I solved it?

03 Aug
2 years ago

Tahsan left a reply on Need To Eloquent Query

have any idea?

Tahsan left a reply on Need To Eloquent Query

Controller:

$allOldTags=$post->oldTags;
 $allNewTags=$project->newTag;
 $allTags=array_merge([$allOldTagss,$allNewTags]);

return view('post.show',compact('allTags'));

want to view on show.blade.php something like


oldtag1 newtag1
oldtag2 newtag2
oldtag3 newtag3
oldtag4 newtag4




02 Aug
2 years ago

Tahsan left a reply on Need To Eloquent Query

@foreach($post->tags_list_for_old as $tagOld) {{$tagOld->name}} //need also tags_list_for_new @endforeach

Tahsan left a reply on Need To Eloquent Query

@ BartHuis any suggestion

Tahsan left a reply on Need To Eloquent Query

  Schema::create('tags_list_for_old', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->timestamps();
        });
Schema::create('tags_list_for_new', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->timestamps();
        });
        Schema::create('post_tags_list_for_old',function (Blueprint $table){
            $table->integer('post_id')->unsigned()->index();
            $table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');

            $table->integer('tags_list_for_old_id')->unsigned()->index();
            $table->foreign('tags_list_for_old_id')->references('id')->on('tags_list_for_old')->onDelete('cascade');

            $table->timestamps();
        });
Schema::create('post_tags_list_for_new',function (Blueprint $table){
            $table->integer('post_id')->unsigned()->index();
            $table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');

            $table->integer('tags_list_for_new_id')->unsigned()->index();
            $table->foreign('tags_list_for_new_id')->references('id')->on('tags_list_for_new')->onDelete('cascade');

            $table->timestamps();
        });

Tahsan started a new conversation Need To Eloquent Query

I trying https://laracasts.com/series/laravel-5-fundamentals/episodes/22 Now I made two type of tag like: tags_list_for_old tags_list_for_new And trying to display something like below:

tags_list_for_old[1] and tags_list_for_new[1] tags_list_for_old[2] and tags_list_for_new[2] tags_list_for_old[3] and tags_list_for_new[3]

what will query for that?do I use array_merge or something other?

01 Aug
2 years ago

Tahsan started a new conversation How To Input Restricted Value Only For "/"

what are the rules for input restricted of "/"

31 Jul
2 years ago

Tahsan left a reply on Json File Can Not Able To Read And Write.

any solution please

Tahsan left a reply on Json File Can Not Able To Read And Write.

if I use something like bellow it's show TokenMismatchException

$("#tag_list").select2({
            tags: true,
            placeholder:'Choose your blog tags',
            ajax:{
                dataType:'json',
                url:'http://localhost:8000/tags',
                type: 'POST',
                delay:2500,
                data:function (params) {
                    return{
                    name:params.term
                    }
             },
               processResults:function (data) {
                   return{results:data}
                }
           }
        });

Tahsan started a new conversation Json File Can Not Able To Read And Write.

I'm try https://laracasts.com/series/laravel-5-fundamentals/episodes/24 why I call json file using ajax request it's not able to read tags.json file.I keep it on public directory. can anyone tell me what is the right way to located json file as per as that laracasts tutorial.

$("#tag_list").select2({
            tags: true,
            placeholder:'Choose your blog tags',
            ajax:{
                dataType:'json',
                url:'tags.json',
                delay:250,
                data:function (params) {
                    return{
                        q:params.term
                    }
                },
                processResults:function (data) {
                    return{results:data}
                }
            }
        });