Stillfinder

Stillfinder

Member Since 2 Years Ago

Experience Points
64,460
Total
Experience

540 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
610
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 13
64,460 XP
Aug
03
1 week ago
Activity icon

Replied to Markdown Editor With Toolbar

It looks like an idea for a new package. But I not sure if a lot of people need this.

Activity icon

Started a new Conversation Upload/Add Images To Laravel Markdown

Hi guys,

I am using GrahamCampbell / Laravel-Markdown as my blog post editor. Everything is fine, I really like it, but I need to upload images and insert them into the content of my articles.

Maybe someone has any ideas on how this can be done, or have encountered a similar task before?

Thank you for any help.

Aug
02
1 week ago
Activity icon

Started a new Conversation Trix Editor - Add H1 And H2 Support.

Hello,

I'm trying to add 'H2' and 'H3' tags and buttons support to the Trix Editor. Maybe somebody knows or already did that before?

I use intermediate component with the following code:

<template>
    <div>
        <input id="trix" type="hidden" :name="name" :value="value">
        <trix-editor input="trix"></trix-editor>
    </div>
</template>

<script>
    import Trix from 'trix';

    export default {
        props: ['name', 'value'],
    }


</script>

and in my blade template:

<wysiwyg name="body" value="{{ $post->body ?? old('body') ?? ''  }}"></wysiwyg>

Maybe I need to add something to the mount method, I not sure.

Thanks for any help.

Activity icon

Replied to Trix Editor And GitHub Code Snippet

Ok, thank you!

Activity icon

Started a new Conversation Trix Editor And GitHub Code Snippet

Hi,

is it possible to use github code snippet (e.g. <script src="https://gist.github.com/stillfinder/b1db4c4c8320b132ecc67e52f24477f6.js) ?

thanks for any help.

Jul
28
2 weeks ago
Activity icon

Started a new Conversation Resources / Books For Learning MySQL

Hi guys,

can you recommend some good books or resources for learning MySQL?

Thanks.

Apr
07
4 months ago
Activity icon

Commented on Exceptions

@farhan_aftab no, this is not the same. You can check this using this example.: https://gist.github.com/stillfinder/8e88b25b7be85afaa431da00175c7a77

Apr
03
4 months ago
Activity icon

Started a new Conversation SQLSTATE[HY000]: Field 'user_id' Doesn't Have A Default Value

Hello.

I'm trying to create a post from the Nova interface, but getting an error:

SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value (SQL: insert into `posts` (`title`, `excerpt`, `body`, `slug`, `updated_at`, `created_at`) values (asdf, asdf, <div>asdf</div>, asdf-1, 2020-04-04 06:26:10, 2020-04-04 06:26:10)) {"userId":1,"exception":"[object] (Illuminate\Database\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value (SQL: insert into `posts` (`title`, `excerpt`, `body`, `slug`, `updated_at`, `created_at`) values (asdf, asdf, <div>asdf</div>, asdf-1, 2020-04-04 06:26:10, 2020-04-04 06:26:10)) at /Users/svd/code/stillfinder-net/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669)

my Nova/Post.php fields method:

 public function fields(Request $request)
    {
        return [
            ID::make()->sortable(),

            Text::make('Title'),
            Text::make('Excerpt'),
            Trix::make('Body')
        ];
    }

my Posts migration:

public function up()
    {
        Schema::create('posts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('slug')->unique();
            $table->string('title');
            $table->text('excerpt');
            $table->text('body');
            $table->unsignedBigInteger('user_id');
            $table->softDeletes();
            $table->timestamps();
        });
    }

Appreciate any help

Activity icon

Replied to A Small Refactoring

@bobbybouwmann , thank you very much. This is what I was looking for.

Activity icon

Replied to A Small Refactoring

@bobbybouwmann I'm trying DRY. This part is the same in different places of the application:

->pluck('name', 'slug')->map(function ($value, $key) {
            return ['key' => $key, 'value' => $value];
        })->values();
Activity icon

Started a new Conversation A Small Refactoring

Hi, I have a similar piece of code in the static method of my Model and inside my Controller. I am trying to find a better way to refactor this, but am not sure about a better solution.

Code from my Controller:

$jsTags =  $post->tags->pluck('name', 'slug')->map(function ($value, $key) {
            return ['key' => $key, 'value' => $value];
        })->values();

Code from my Model:

public static function allJson()
    {
        return Tag::all()->pluck('name', 'slug')->map(function ($value, $key) {
            return ['key' => $key, 'value' => $value];
        })->values();
    }

Thanks for any help.

Activity icon

Started a new Conversation Str_replace || ! Str_replace ?

Hi, is it ok to use this? Or maybe there is a better solution?

$parameters['body'] = str_replace('<pre>', '<pre><code>', $parameters['body']);
$parameters['body'] = str_replace('</pre>', '</pre></code>', $parameters['body']);
Apr
01
4 months ago
Activity icon

Commented on Pizza Time

But a lot of fun!

Mar
30
4 months ago
Activity icon

Replied to WYSIWYG Editor On The Laracasts

So, how can I add something like that to my site?

Activity icon

Replied to WYSIWYG Editor On The Laracasts

But how can I use this marker ``` ?

Mar
28
4 months ago
Activity icon

Commented on Containers, Aliases, And Contracts: Behind The Scenes

So, if I would like to use my own implementation of 'hash', should I create a new ServiceProvider and assign my own class?

Mar
27
4 months ago
Activity icon

Commented on Apply An Index To Drastically Improve Performance

Are there any negative aspects to using indexes?

Mar
26
4 months ago
Activity icon

Commented on Laravel And Foreign Key Constraints

It looks like in Laravel 7 we can use something like this:

$table->foreignId('user_id')->constrained();

and

$table->foreignId('user_id')
      ->constrained()
      ->onDelete('cascade');

am I right?

Mar
23
4 months ago
Activity icon

Commented on Supercharged Blade Components

I'm 100% agree with you. It's confusing.