ilex01

ilex01

Member Since 4 Months Ago

Experience Points
6,990
Total
Experience

3,010 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
63
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 2
6,990 XP
Jan
21
2 months ago
Jan
15
2 months ago
Activity icon

Replied to Add A New Line Before And After The <div> Tag In PhpStorm

I see, thank you!

Then I guess there is no option to add a new line before a div?

Activity icon

Replied to Add A New Line Before And After The <div> Tag In PhpStorm

Thank you for your help!

On a filed named: test1.html. An .html file.

Thank you for the screenshot.

However, to the right of the screenshot, we can see that there is no new line before the first and the second div?

And I've set the div tag in: Preferences > Editor > Code Style > Other > Insert new line before

Activity icon

Replied to Add A New Line Before And After The <div> Tag In PhpStorm

Hi bugsysha,

Thank you for your answer!

Yes, I already did that, and it doesn't even add a line before the div tag. (I've added the div tag in the input to the right of the: "add a line before the div tag").

Activity icon

Replied to Add A New Line Before And After The <div> Tag In PhpStorm

Hey jlrdw,

I thank you very much for your answer! I think it was a little bit confusing but I meant: I want to add a new line before and after the tag in the IDE (when I use the Reformat Code action). I don't want to add a new line in the browser.

Jan
14
2 months ago
Activity icon

Started a new Conversation Add A New Line Before And After The <div> Tag In PhpStorm

Hi!

Here is my current HTML code in PhpStorm:

<body>
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
</body>

When I Reformat Code, I would like this:

<body>
    <!-- Empty line here in PhpStorm -->
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
    <!-- Empty line here in PhpStorm -->
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
    <!-- Empty line here in PhpStorm -->
</body>

I've been looking for hours in the HTML Code Style, but can't seem to make it work.

Thank you for your help.

Jan
08
2 months ago
Activity icon

Commented on CSRF Attacks, With Examples

ahahah

Jan
02
3 months ago
Activity icon

Awarded Best Reply on OnDelete('cascade'); Doesn't Work For Me

Hi kensmithzzz,

The user's articles weren't deleted automatically. I had to set the InnoDB storage engine.

Thank you for your help!

Activity icon

Replied to OnDelete('cascade'); Doesn't Work For Me

Hi kensmithzzz,

The user's articles weren't deleted automatically. I had to set the InnoDB storage engine.

Thank you for your help!

Jan
01
3 months ago
Activity icon

Started a new Conversation OnDelete('cascade'); Doesn't Work For Me

Hi!

->onDelete('cascade'); doesn't work for me.

Here is my code:

In create_articles_table.php:

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateArticlesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('articles', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedBigInteger('user_id');
            $table->string('title');
            $table->text('excerpt');
            $table->text('body');
            $table->timestamps();

            $table->foreign('user_id')
                ->references('id')
                ->on('users')
                ->onDelete('cascade'); // <- onDelete('cascade'); doesn't work for me
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('articles');
    }
}

In create_users_table.php:

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}

Thanks for any help!

Dec
02
4 months ago
Activity icon

Commented on Messages 101

Hi,

You have to call the members or the getMembers method with its right name:

1/ return $this->staff->members() or return $this->staff->getMembers()

2/ public function members() or public function getMembers() { ... }

In the Business class you should have:

public function getStaffMembers() 
{
	return $this->staff->members(); // or: return $this->staff->getMembers();
}

and in the Staff class you should have:

public function members() // or: public function getMembers()
{
	return $this->members;
}