towhid

towhid

Member Since 3 Years Ago

Bangladesh

Experience Points
10,760
Total
Experience

4,240 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
18
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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 3
10,760 XP
Feb
26
1 month ago
Activity icon

Replied to Anyone Know How To Embed An Image In A Laravel Markdown Email?

<img src="{{ $message->embed('logo.png')}}"  alt="logo" class="logo-default">

this also is not working

Activity icon

Replied to Anyone Know How To Embed An Image In A Laravel Markdown Email?

@snapey its not work :( ![alt text](path to image)

Jan
16
2 months ago
Activity icon

Replied to How To Validate A Laravel Form Using JQuery Ajax

HEllo @signar ,

i have one issue , if my data is exist its show perfect , but if my data is not exist ,. its also show validation error show .. please make sure how to do solve that ? thank you

Dec
04
4 months ago
Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

Dear brother @jlrdw

you are too much helpful person . i know that i will follow your instruction as mu local any project then i will understand its solve my problem or not .. give me time . i will update soon thank you after next 2nd week because now time the feature developing pause . thank you

Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

Thanks @snapey for full support from you ,. but bad news is when i am trying to multi pagination in my project its so complex because of already 80 % user panel user profile Details ... i f change i cannot fix out easily ... that's why now its pause this feature . i will try again .. next 2nd week ,

Dec
02
4 months ago
Activity icon

Replied to How To Clear Config Cache Data From Route In Laravel 5.5

php artisan cache:clear;
php artisan config:clear;
php artisan route:clear;
php artisan view:clear;

if you want you can clear , i hope everything will be fine . thank you @chitrasen

Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

Brother @jlrdw

does ver 6 now support paginate for collections.

i have 5.8 version of laravel , and one thing i don't understand your reference link code how to do ?

/**
  * Gera a paginação dos itens de um array ou collection.
  *
  * @param array|Collection      $items
  * @param int   $perPage
  * @param int  $page
  * @param array $options
  *
  * @return LengthAwarePaginator
  */
public function paginate($items, $perPage = 15, $page = null, $options = [])
{
    $page = $page ?: (Paginator::resolveCurrentPage() ?: 1);
    $items = $items instanceof Collection ? $items : Collection::make($items);
    return new LengthAwarePaginator($items->forPage($page, $perPage), $items->count(), $perPage, $page, $options);
}

how to do use ? where i can make previous and next link how ? can i use for-each loop in my single profile ??

Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

@snapey you said

you can use regular paginate With page size of 1 .

but how to do how can please give me example code or give me practical code .

Activity icon

Replied to In This Forum How To Post Details With Image

Yes i will follow - wait for my - update reply their for my other post @jlrdw

Activity icon

Started a new Conversation In This Forum How To Post Details With Image

how to image add in my details here

Dec
01
4 months ago
Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

hi , @jlrdw

no one understand my post ?? no one ? is this wrote hard word or hard think ?? i don't believe no one understand my question , how much details i share with you ?

its simple -- NEXT and Previous link in single page --- blade . when i click next then move next item if i want i can move previous item also .

this i want - if you don't understand then ask me question what you want to know from me ?

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

but i want to resolution control in run time selected criteria

Activity icon

Started a new Conversation NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

i have many kind of collection , my favorite list, who favorite me list , my contact pick list , who contact me list . contact trashed list , favorite trash list , many kind of and difference difference type of collections.

now imagine i have 5 items record set in any collection's list Order by date DESC , collections = [ 4,7,9,2,12],

now when i click 7th item then show single details about 7th item .there are two button available

NEXT and PREVIOUS

when i click Next button then show 9th item single page and details about 9th item , and if i click again next Button in 9th number single item page then show 2nd item single page , in this moment if i think i am going to previous item then click previous button and go to 9th number item single page again ....

i hope you are all understand my problem . please suggest me about this functionality .

please guide me practically bu some code of suggestion . if any kind of quarry please ask me -

thank you

Nov
28
4 months ago
Activity icon

Replied to Next Previous Profile In Single Profile View

@tisuchi hi

in this setuation i found one solution but dont know how long run my this thing . but J i think i can use helper function for this thing .. i follwed this link https://laracasts.com/discuss/channels/general-discussion/best-practices-for-custom-helpers-on-laravel-5?page=1#reply-28978

Nov
27
4 months ago
Activity icon

Replied to Next Previous Profile In Single Profile View

yes , i know brother . but what can i do my exiting project running this application architecture plan . i just followed existed.

but what i do now ? record set how to keep my single profile view - ? please read my problem again if you help m some thing then really help my Task . in this laracasts video tutorial has no video in this topics . (record set view with previews next ) and centrally variable collect difference difference - controller

Activity icon

Replied to Next Previous Profile In Single Profile View

@tisuchi Hi , This is my problem scenario :

i have one controller name userprofile controller here i call method name index() and this is my single profile view controller

this is my single profile route

Route::get('user/user-profile-view/{id}', 'User\[email protected]');

i have many kind of record set - like .

contact list # proposal list # favorite list # trash list #all user list # active user list

so when record list show then click single profile view button . when action button click

 <a href="{{ url('user/user-profile-view',$userInfo->user_id) }}">

there are many different type record set for click single view profile ...

in this moment i want this previous and next record .

its good news i follow your instruction and complete next previous issue . but new thing is , how to do for all kind of different different type record set from different different controller .

now i am direct call all variable from userprofile controller

that's why arise new issue if i have record set for one quarry contact list controller then my previous and next data show ... but if some one try to another single page from other controller like favorite controller then show

Trying to get property 'id' of non-object

this is my quarry

 $userID =  ContactRequest::where('contact_receiver_user_id', $id)->where('mode', 1)->where('contact_request.contact_sender_user_id', auth()->user()->id)->select('id')->first()->id;

        //    dd($userID);

        $next = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->where('contact_request.id', '<', $userID)
            ->orderBy('contact_request.contact_date', 'desc')
            ->first();



        $previous = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->where('contact_request.id', '>', $userID)
            ->orderBy('contact_request.contact_date', 'desc')
            ->first();

        // dd($previous);

        $first = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->orderBy('contact_request.contact_date', 'desc')
            ->first();

        $last = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->orderBy('contact_request.contact_date', 'desc')
            ->get()
            ->last();


its error for this code

 $userID =  ContactRequest::where('contact_receiver_user_id', $id)->where('mode', 1)->where('contact_request.contact_sender_user_id', auth()->user()->id)->select('id')->first()->id;

how to condition use for this quarry ?

or do you have others way to solve this kind problem-

this is my blade next previous action button

  <ul class="pagination pull-right profile_pag">
@if($first->contact_receiver_user_id != $id)
<li>
 <a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$first->contact_receiver_user_id)}}">
<i class="fa fa-angle-left"></i> First
 </a>
</li>
@endif
@if(!empty($previous->contact_receiver_user_id))
<li>
<a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$previous->contact_receiver_user_id)}}">
<i class="fa fa-angle-left"></i> Prev
</a>
</li>
@endif
@if(!empty($next->contact_receiver_user_id))
<li>
<a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$next->contact_receiver_user_id)}}">
 Next<i class="fa fa-angle-right"></i>
</a>
</li>
  @endif
  @if($last->contact_receiver_user_id != $id)
 <li>
 <a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$last->contact_receiver_user_id)}}">
 <i class="fa fa-angle-right"></i> Last
 </a>
</li>
  @endif
 </ul>

thank you

Nov
26
4 months ago
Activity icon

Replied to Next Previous Profile In Single Profile View

Yes its Work its 100 Work :) thanks my big brother :) , but i have one another question which one i share with you

other things i have many kind of record set for difference type of record collection .

how to centrally this ? or every record collection depend s on every difference quarry for this single profile view - like

1# my contact list some record list collection 2# my proposal list record list collection 3# my search list record list collection 4# [one important thing i ave many type of search form which one get collect data and through different different search pagination ] - so whats i do ? centrally dynamic quarry or single single different type of quarry for all single profile view page .

thank you @tisuchi

Activity icon

Started a new Conversation Next Previous Profile In Single Profile View

scenario : i have a result set for 20 profile , if i click then single profile view show . now i want to next profile and previews profile view button . when i click next button then go next profile in my result set collection by descending wise data .

i don't understand how to get next id and previews id in my profile view blade , please help me . thank you

if any kind of quarry please ask me - then i will discuss details .

as like i have contact list when i click then show 4 record descending wise . if i click one contact profile then show one single page , and now i want to next profile view out of 4 descending wise . so how to to ? that ?

i have contact profile controller where i collect my contact list collection , and my user profile controller for single profile view page .. . and other things i have many kind of record set for difference type of record collection .

so how to do and what the procedure in laravel for next previous profile view

Nov
08
5 months ago
Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

@Snapey Please hep me i need this Solve Thank you

Activity icon

Replied to Help Me In Foreach Loop Scope Of Variable With Redirect To View.

user this code this file app/Providers/AppServiceProvider.php


public function boot()
{
   // add this
$referral_user_2 = ReferralUser::where('referral_id' , $first_referral->user_id)->where('status' ,1)->get();
    view()->share('referral_user_2',$referral_user_2);
}

try this one

Nov
05
5 months ago
Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

OK - understand your point ,thanks for suggestion @maverickchan

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

hello , thanks for your Message , i don't understand what are you saying ? thanks @maverickchan

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

hello , this reference link show me how to upload time image size resize but i want to know when show time in blade then show my selected size like -

my profile image upload size 145 height , but when show my admin panel all of user details then show time profile image size 45 , and the image size not crop or resize before just view page load my selected size that's it

if i download then file then size is 45 height and image size also less then original size ..

i don't want to save any selected size just save my store only original size , but Show time all list just 45 height and if some one download this image then show 45 height with size ration Thank you @nakov

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

Thanks for your Reply @nakov Could you please explain the process of work GD library in laravel project or any reference where i follow - the instruction and solve my problem .

IS this right way to code structure for GD library work which one i show you ?

like think this scenario : when i declare the size of image in controller the image show in my view page those sizes . not original size which one i uploaded before the image for my profile picture -

this library need because my site load badly for long time for a page load

if i can use this library i think the loading time much less Thanks again

Nov
04
5 months ago
Activity icon

Started a new Conversation Laravel Intervention Image GD Library Not Support As Like Feature

this is my direct route in web.php file

Route::get('userimage/{img}/{h}/{w}',function($img, $h=60, $w=60){
   return \Image::make(public_path("/storage/users/images/".$img))->resize($h, $w)->response('jpg');
});

ths is my blade template

<img src="{!! url('storage/users/images', [$usergallery->image_url]) !!}"
                                         class="img-responsive" alt="">

when iam trying to resize my image load the page then its not work , not error also , if any ony who did complete this library in laravel perfectly please inform me its really help me complete my task . thank you

Oct
28
5 months ago
Activity icon

Replied to Mark As Read A Specific Notification In Laravel Notifications

ok after this instruction try i will inform you thank you

Activity icon

Started a new Conversation Mark As Read A Specific Notification In Laravel Notifications

when i click the who notification show and my notification box is empty , but i want to se if i click selected notification then only mark as read this notification .

but probelm is i dont underatnd how to do this ? please help m eout this problem ..

thank you

Oct
14
5 months ago
Activity icon

Replied to Laravel Collective Form Value Select From Database And Show Others Value Name Problem

DB data not show when i am select the Value in drop down list

Activity icon

Started a new Conversation Laravel Collective Form Value Select From Database And Show Others Value Name Problem

this is my another service provider code

        if (Schema::hasTable('registration_fields')) {
            $marital = RegistrationField::where('slug', '=', 'maritual_status')->first();
            $maritals = RegistrationFieldValue::where('registration_field_id', '=', $marital->id)->select([
                'id', 'value_name', 'value_id'
            ])->get();
            View::share('maritals', $maritals);
        }

this is my library code where i get for marital status value

    public static function getMaritalStatusList()
    {
        $slug = RegistrationField::where('slug', '=', 'maritual_status')->first();
        $marital = RegistrationFieldValue::where('registration_field_id', '=', $slug->id)->pluck('value_name', 'value_id');
        // array_add($marital, "", "Maritual Status");
        return $marital;
    }

this is my serviceprovider code

        Form::macro('selectMaritalStatus', function ($name, $selected = null, $options = []) {
            $marital = \App\Libraries\RegistrationfieldLibrary::getMaritalStatusList();
            return Form::select($name, $marital, $selected, $options);
        });

this is my controller collection

      $users = Auth::user();

this is my relation code

  public function user_info()
    {
        return $this->hasOne('App\UserInfo', 'user_id', 'id');
    }

this is my Collective form code

{!! Form::selectMaritalStatus('marital_status', [$marital->value == 2 ? 'selected' : ''], ['class'=>'form-control', 'id'=>'marital_status']) !!}

form select code

@foreach($maritals as $marital)
 @if($users->user_info->user_marital_status == $marital->value_id)
 {!! Form::select('marital_status',[$marital->value_name], ['class'=>'form-control', 'id'=>'marital_status']) !!}
@endif
@endforeach

please help me ..

Oct
07
6 months ago
Activity icon

Replied to Same Data Show In Foreach Loop How To Unique Data Show In Blade ?

No i just collect data from Database and data save as like my requirement - you just tell me - if any function laravel or any other process to show unique value ?

after googling i try this kind of function but not understand why not show output accurately.

unique(),
distinct()
pluck()
Activity icon

Started a new Conversation Same Data Show In Foreach Loop How To Unique Data Show In Blade ?

@foreach($religions as $religion)
@if($religion->value_id == $user->user_info->user_religion)
{{$religion->value_name}}
@endif
@endforeach

here is show three times show data

Here is  my data  table value 
column name 
valuename, value_id 
muslim => 1, 
buddhist => 2, 
hindu ] => 3;
muslim = > 1,
hindu => 3,

checking value_id show value name     , 

i need answer only muslim  when value id match 1 
Activity icon

Replied to Big Project LARAVEL MIX Problem

BTW this is unsolved problem , i just avoid this issue . thanks all