Dunsti

Dunsti

Member Since 3 Years Ago

Rodgau

Experience Points
19,000
Total
Experience

1,000 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
13
Lessons
Completed
Best Reply Awards
28
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
19,000 XP
Jul
28
1 month ago
Activity icon

Awarded Best Reply on How To Define Pivot Table For One To One Relationship?

one to one relationships don't need a pivot-table!?

Apr
18
5 months ago
Activity icon

Replied to Capture And Handle 404s Where A .php File Is Specified

The dev server runs CentOS and apache

why are you changing the nginx-config then? try changing the apache-config ;)

Activity icon

Replied to 3 Table Pivot Example

The trick is, to declare the relations inside the Pivot-Class:

class DegreeStudent extends Pivot
{
    public function consultant()
    {
        return $this->belongsTo('App\Consultant');  // this is the relation to consultant
    }
}
Apr
14
5 months ago
Activity icon

Replied to 3 Table Pivot Example

Maybe my example here will help, or at least get you started:

https://laracasts.com/discuss/channels/eloquent/creating-a-belongs-to-many-relationship

Activity icon

Replied to Can't Connect With MariaDB And Laradock

After Googling for a while, I found this:

try adding this key to your .env

MARIADB_DB_HOST=mariadb

not sure, if it helps, but worth a try!

Apr
12
5 months ago
Activity icon

Replied to Can't Connect With MariaDB And Laradock

@bobbybouwmann do you really need to take care of PMA_DB_ENGINE or only if you really use phpMyAdmin ?

@punksolid to narrow down the error, you could try to ssh into your mariadb-box with docker-compose exec mariadb bash and check from the console, if the database is working.

Activity icon

Replied to Upload Files From 3 Different File Fields

Are the files really uploadad? Check your browsers-developer-tools, if there are any errors.

Most common errors with file-uploads are:

  • files are too big --> check upload_max_filesize, memory_limit and post_max_size in php.ini

  • files need to long to upload --> check max_execution_time and max_input_time in php.ini

also check the settings of your webserver - for example nginx see here: https://www.nginx.com/resources/wiki/modules/upload/

Activity icon

Replied to Can't Connect With MariaDB And Laradock

is your mariadb-box up and running? (check with docker ps or docker-compose ps)

did you start your docker-environment correctly: docker-compose up -d nginx mariadb ?

Activity icon

Replied to How To Join Request On 2 Fields With OR Condition?

you could use orWhere() instead of where() in your scope, or you could use whereBetween() :

$storageSpaceCollection= StorageSpace
	...
	->whereBetween('check_in_date', [$report_date_from, $report_date_till])
	->whereBetween('check_out_date', [$report_date_from, $report_date_till])
	...
	->get();
Apr
11
5 months ago
Activity icon

Replied to Capture And Handle 404s Where A .php File Is Specified

you can't configure this in the .yaml-file directly.

There are two possibilities:

1.) after you created your vagrant-box (normally with homestead up) you ssh into your box (with homestead ssh) navigate to /etc/nginx/sites-available/ and change the config file there. (That's for nginx - not sure, where the apache-files are exactly, but they should also be somewhere in /etc/apache or similar)

But this needs to be done everytime you destroy and recreate your box !!!

2.) you can change the provisioning-script in your homestead installation, so this is set up automatically when you create your box. For nginx you need to adjust the file homestead/scripts/site-types/laravel.sh and for apache the file is named homestead/scripts/site-types/apache.sh

Apr
08
5 months ago
Activity icon

Replied to Capture And Handle 404s Where A .php File Is Specified

This is a setting in the webservers config.

For example in nginx: error_page 404 /redirect_script_for_missing_files.php;

For example in Apache: ErrorDocument 404 /redirect_script_for_missing_files.php

this leads all 404 errors to the specified script, where you can handle the 404 behaviour

Apr
01
5 months ago
Activity icon

Started a new Conversation Laradock Not Writing Error.log

I am trying to get Laradock to work on my Windows 10 machine. I set up LaraDock exactly like it is documented on their website, but I still got some problems:

I keep getting an 500 Server Error but there is no output in the error-log. From the config, the errors should be reported into /logs/nginx/laravel_error.log This file exists, but it is empty.

Additional info:

  • log_errors is set to on in php.ini
  • the access.log is written normally - in there I can see the 500 error.

What do I have to do, to get the error.log working?