SkyCoder

SkyCoder

Member Since 2 Years Ago

Experience Points
18,620
Total
Experience

1,380 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
75
Lessons
Completed
Best Reply Awards
2
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 4
18,620 XP
Sep
16
1 month ago
Activity icon

Started a new Conversation Can't View Site With IP Or Domain

I added a and cname for my domain and pinging it returns forge server IP. I added two sites, one for nuxt (which i didn't yet configured, just added as site and connected to git) Other one for laravel api.

I removed default site.

How can I see these two with IP address at least? When I open ip address only I can see is 404 not found... Don't even know how to navigate to these 2 sites by URL if possible?

Activity icon

Started a new Conversation Laravel Auth Api Returns 401 On New Tab Or Window

I am using nuxt auth, where it sends get route with bearerr token on page refresh etc. But when I open new window or new tab it returns 401.

I did check if token was valid and tried same one on postman where it worked.

Anyway this is on local with nuxt on 127.0.0.1:3000 and laravel on 127.0.0.1:8000.

Sep
12
1 month ago
Activity icon

Replied to Different Domain On Password Reset

I thought there must be a link without creating whole notification for it...

Activity icon

Started a new Conversation Different Domain On Password Reset

How can I add totally different link - url to builtin password reset?

I have one link for API and other for client.

Sep
01
1 month ago
Activity icon

Started a new Conversation Nuxt Auth Laravel Passport Login

Is there an example of how to use and set up properly nuxt auth with laravel passport?

I followed https://dev.auth.nuxtjs.org/providers/laravel-passport/ but I am wondering why do I need client id and key? I want to try to login with email and password and save token.

But this.$auth.loginWith('laravel.passport') asks for client stuff. Honestly I am totally lost.

Aug
16
2 months ago
Activity icon

Replied to Nuxt On Cloudways

Can we use supervisor on clever cloud for laravel ? Couldn't find that

Aug
15
2 months ago
Activity icon

Replied to Maiilgun Mailer Work Only As Smtp Transport

Nothing, no errors no logs of sending message or anything when it is on mailgun. While on smtp works fine

Activity icon

Started a new Conversation Nuxt On Cloudways

Can we run nuxt on cloudways? If not what are alternatives?

Activity icon

Replied to Maiilgun Mailer Work Only As Smtp Transport

Yes of course I did..... Still same thing when choosing mailgun instead of smtp :/

Activity icon

Started a new Conversation Maiilgun Mailer Work Only As Smtp Transport

I found out that using mailgun and laravel don't work when you add MAIL_MAILER=mailgun, but leave as smtp?

Anyone know why is that?

When I add mailgun it throws no errors and just skips sending email but when I leave as smtp I can see in my mailgun dashboard that the emails are sent.

Aug
14
2 months ago
Activity icon

Replied to Id Not Found, I Am Trying To Get It By Slug

Tip: You don't need to set slug there you could use Route::get('/settings/{set:slug}', '[email protected]');

Activity icon

Replied to No Hint Path Defined For [mail]. Laravel 7

Of course, it does. Seems like, when I remove components from file and add custom HTML it works...

Activity icon

Started a new Conversation No Hint Path Defined For [mail]. Laravel 7

I am trying to view mail markdown within the browser and it returns error "No hint path defined for [mail].".

php artisan make:mail Test --markdown=emails.test

Build method from mail class

public function build()
{
    return $this->markdown('emails.test');
}

I have just this in my web routes:

Route::get('/test-email', function () {
    return new \App\Mail\Test();
});

How can I solve this?

Jul
23
3 months ago
Activity icon

Started a new Conversation How To Connect To Mailgun Api With Laravel Builtin Package

use Mailgun\Mailgun;

# Instantiate the client.
$mgClient = Mailgun::create('PRIVATE_API_KEY', 'https://API_HOSTNAME');
$domain = "YOUR_DOMAIN_NAME";
$params =  array(
    'from'    => 'Excited User <[email protected]_DOMAIN_NAME>',
    'to'      => array('[email protected], [email protected]'),
    'subject' => 'Hey %recipient.first%',
    'text'    => 'If you wish to unsubscribe, click http://example.com/unsubscribe/%recipient.id%',
    'recipient-variables' => '{"[email protected]": {"first":"Bob", "id":1},
                               "[email protected]": {"first":"Alice", "id": 2}}'
);

# Make the call to the client.
$result = $mgClient->messages()-send($domain, $params);

This is an example for batch emails from mailgun website. How can or can I even do this without including that additional package?

Jul
17
3 months ago
Activity icon

Started a new Conversation Mailgun Sending Lot Of Emails

Is there maybe a way with mailgun to send like post request with message emails where to send message, without sending each message within laravel?

if I have 10 000k emails:

foreach($emails as $email) {
	Mail::send(new Message())->to($email);
}

Is there a way to send data with all emails and message or make email lists on mailgun and send just email and use email list?

Jul
14
3 months ago
Activity icon

Started a new Conversation Better Mail Service For Laravel App

I am deciding which service to use between these two but if you have any other please add.

https://www.sendinblue.com/

https://www.mailgun.com/

I would like to use it for the newsletter.

Jul
02
3 months ago
Activity icon

Started a new Conversation How To Handle Failed Login In Laravel

From laravel out of the box auth login, how can I flash session on any type of fails?

Like in Requests I have this:

protected function failedValidation(Validator $validator)
    {
        request()->session()->flash('modal', 'join-us');
        throw (new ValidationException($validator))
                    ->errorBag($this->errorBag)
                    ->redirectTo($this->getRedirectUrl());
    }

I would like to flash session for modal that is used, so I can show it opened after redirect.

Jun
20
4 months ago
Activity icon

Replied to Get Users That Has One Post With Only One Post

Its similar to your solution so Ill accept yours

Activity icon

Replied to Get Users That Has One Post With Only One Post

This solution works: In user model:

public function post () {
	return $this->hasOne(Post::class)->first() // latest()
}

And then $users = App\Models\User::has('post')->with('post')->get();

Activity icon

Replied to Get Users That Has One Post With Only One Post

Thats not the problem, i typed it wrong here....

Activity icon

Replied to Get Users That Has One Post With Only One Post

In user model:

public function posts () {
	return $this->hasMany(Post::class);
}

In post model:

public function user () {
	return $this->belongsTo(User::class);
}
Activity icon

Started a new Conversation Get Users That Has One Post With Only One Post

How can I change this to get only one post per user:

User::has('posts')->with('posts')->get()

$users = User::has('posts')->with(['posts', function ($query) {
	$query->first();
}])->get()
  • This one throws an error: "Illuminate/Database/Eloquent/RelationNotFoundException with message 'Call to undefined relationship [] on model [App/Models/User].";

User hasMany Posts is used.

Jun
19
4 months ago
Activity icon

Started a new Conversation Laravel Cacher Remember Foreevr Returns Nothing

cache()->rememberForever('books', function () {
  return Book::all();
})

vs

return Book::all();

First doesn't return anything, second does

Jun
13
4 months ago
Activity icon

Replied to How To Put Laravel Components Within Separate Folders

Confirmed! I am blind, didn't see the dot, thought it was -.

Activity icon

Started a new Conversation How To Put Laravel Components Within Separate Folders

When I make new component I would like to have base component like Modal within root directory as it is made:

app/View/Components/Modal.php

And then I would like to have something like

app/View/Components/Modals/Login.php
app/View/Components/Modals/Register.php
app/View/Components/Modals/ResetPassword.php

How could I use/call these components like ones from root folder? (Components as root folder)

- Works fine

But <x-login></x-login> or <x-modals-login></x-modals-login> doesn't work. Is there something that can work like this?

May
22
5 months ago
Activity icon

Replied to Deno Within Laravel

Thats what I was looking for thanks :D

Activity icon

Started a new Conversation Deno Within Laravel

What are your thoughts on deno within laravel instead of node? (Will it happen)

Activity icon

Started a new Conversation Stateless (Passport) Vs Stateful (Sanctum)

Stateless (Passport) vs Stateful (Sanctum), what are cons and pros? Which is better?

May
20
5 months ago
Activity icon

Started a new Conversation Best Setup That Is Not Vps For My Project

Hello there.

I am looking for best low-cost shared hosting or laravel forge that can run laravel and vue js. With option to send 100 000 emails per new user registration.

Should I use 3rd party for emails or can it be done within laravel forge or some hosting?

Apr
26
6 months ago
Activity icon

Started a new Conversation Laravel Package For Youtube Api Insert

Is there any php/laravel package for this:

https://developers.google.com/youtube/v3/docs/videos/insert

I would like to allow users to upload videos from my website to my youtube channel.