towhid

towhid

Member Since 3 Years Ago

Bangladesh

Experience Points
21,230
Total
Experience

3,770 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
117
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 5
21,230 XP
Aug
12
16 hours ago
Activity icon

Replied to Laravel Socialite GitHub Redirect Page 404 Page Not Found

@tisuchi

same :(

C:\laragon\www\laravel-feature
λ php artisan optimize:clear
Compiled views cleared!
Application cache cleared!
Route cache cleared!
Configuration cache cleared!
Compiled services and packages files removed!
Caches cleared successfully!

C:\laragon\www\laravel-feature
λ php artisan cache:clear
Application cache cleared!

C:\laragon\www\laravel-feature
λ php artisan config:clear
Configuration cache cleared!

C:\laragon\www\laravel-feature
λ php artisan config:cache
Configuration cache cleared!
Configuration cached successfully!

C:\laragon\www\laravel-feature
λ
Aug
09
3 days ago
Activity icon

Replied to Laravel Socialite GitHub Redirect Page 404 Page Not Found

yes i used this code in terminal than return this line

λ wget https://github.com/login/oauth/authorize?scope=user%3Aemail&response_type=code&state=KE2aGOZe9GnnHqqCBnyywLhatqkTzLeGP2FQlXTz
'wget' is not recognized as an internal or external command,
operable program or batch file.
'response_type' is not recognized as an internal or external command,
operable program or batch file.
'state' is not recognized as an internal or external command,
operable program or batch file.
Activity icon

Replied to Laravel Socialite GitHub Redirect Page 404 Page Not Found

@sinnbeck i am windows user how to do or what to do this code ? wget that address in the terminal (from the server)?

if i command in my terminal than show this error

C:\laragon\www\laravel-feature
λ wget https://github.com/login/oauth/authorize?scope=user%3Aemail&response_type=code&state=KE2aGOZe9GnnHqqCBnyywLhatqkTzLeGP2FQlXTz
'wget' is not recognized as an internal or external command,
operable program or batch file.
'response_type' is not recognized as an internal or external command,
operable program or batch file.
'state' is not recognized as an internal or external command,
operable program or batch file.

i don't understand about this " wget "

Activity icon

Replied to Laravel Socialite GitHub Redirect Page 404 Page Not Found

@sinnbeck Do you mean this one ?

λ php artisan serve
Laravel development server started: http://127.0.0.1:8000
[Sun Aug  9 18:04:56 2020] PHP 7.4.7 Development Server (http://127.0.0.1:8000) started
Activity icon

Replied to Laravel Socialite GitHub Redirect Page 404 Page Not Found

@tisuchi yes its cache clear done and also server restart still show page not found 404 Error

λ php artisan cache: clear

Application cache cleared!
Activity icon

Started a new Conversation Laravel Socialite GitHub Redirect Page 404 Page Not Found

Following this documentation

composer require laravel/socialite

this is my service.php page code

    'github' => [
        'client_id'     => env('GITHUB_CLIENT_ID'),
        'client_secret' => env('GITHUB_CLIENT_SECRET'),
        'redirect'      => env('GITHUB_CALLBACK'),
    ],

this is my .env github code

GITHUB_CLIENT_ID=bece543261*******
GITHUB_CLIENT_SECRET=319070ae1ebb2877c6********
GITHUB_CALLBACK=http://laravel-feature.test/login/github/callback

i am using laragon thats why my server link is

http://laravel-feature.test

this is my route code

Route::get('login/github', 'Auth\[email protected]');
Route::get('login/github/callback', 'Auth\[email protected]');

this is my logincontroller code

    public function redirectToProvider()
    {
        return Socialite::driver('github')->redirect();
    }

    public function handleProviderCallback()
    {
        $user = Socialite::driver('github')->user();

        // $user->token;
    }

this is my login blade code

 <a href="login/github" class="btn btn-primary">
                                    {{ __('Login Github') }}
                                </a>

but when i am click login github button its redirect to this link and show 404 page not found

Error Page: https://github.com/login/oauth/authorize?scope=user%3Aemail&response_type=code&state=KE2aGOZe9GnnHqqCBnyywLhatqkTzLeGP2FQlXTz

so what's the problem ? if any one face this kind of please help me thank you

Aug
08
4 days ago
Activity icon

Commented on Build A Like/Dislike System

@jeffreyway Hello, in video : 14:25, $user->likes returns Collection, but on my application get return null . How you Do that ? please give me the solution .thank you

Aug
03
1 week ago
Activity icon

Commented on Build The Explore Users Page

its work :) but if you want you can do this any process also

 if($value) {

        return asset('storage/' . $value );

    } else {

        return asset('images/default-avatar.png');
    }

or

 if($value){
return asset('storage/'.$value);
 }
return asset('images/default.jpg');

or

 return $value ? asset('storage/'.$value) : asset('images/default.jpg');

or

return asset($value ? 'storage/'.$value : 'images/default.jpg');
Activity icon

Commented on File Storage And Custom Avatars

yes great :) but Jaffrey multi-selector type in form input box how to do that?

Activity icon

Commented on File Storage And Custom Avatars

No, your accessor name depends on your table column name like your column name is avatar so your accessor name is

public function getAvatarAttribute(){
}

and if you want to show your data any image then use this code

<img src="{{$your_collection_name ->avatar}}"/>

as like your question, your accesor name is

public function getAvaatarAtrribute(){
}

so your link is

$this->avaatar

thank you

Activity icon

Commented on File Storage And Custom Avatars

Hello, @farhan_aftab this was also my problem, but I find the solution perfectly like others.

when you want to use thing from your getAvaterAttribute by {{$user->avater}} from your local drive then

    public function getAvaterAttribute(){
        return "https://i.pravatar.cc/200?u=".$this->email;
    }

when you want to use thing from your getAvaterAttribute by {{$user->avater}} from your database then

    public function getAvaterAttribute($value){
         return asset('storage/'.$value);
    }

@jeffreyway is this right process or anything else from your sense. thank you

@jamalanwary is also right but his details not clear for beginner's understand.

Jul
31
1 week ago
Activity icon

Commented on Construct The Profile Page

without login , the login page show this error

Trying to get property 'follows' of non-object 

how to solve .

Activity icon

Commented on Expanding The Timeline

Done As like @jeffreyway . :)

Jul
28
2 weeks ago
Activity icon

Commented on Twitter Clone Setup

if anyone faces a problem this command

laravel  new  tweety --auth 

then please install this package

composer require laravel/ui

if you install this package one time then no need for a new composer setup...

thank you

Jul
21
3 weeks ago
Activity icon

Commented on Leverage Route Model Binding

How to do override method search in vscode in windows, thank you

Feb
26
5 months 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)