markusheinemann

markusheinemann

Member Since 5 Months Ago

Dresden

Experience Points 880
Experience Level 1

4,120 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 0
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

16 Dec
3 months ago

markusheinemann started a new conversation Laravel Class 'Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory' Not Found

Hello,

I try to do a http request wit guzzle using this code

class FeedbackController extends Controller
{

    /**
     * API Endpoint
     *
     * @var string
     */
    private $endpoint = 'https://gitlab.com/api/v4/projects/[id]';

    /**
     * Client for Requests
     *
     * @var GuzzleHttp/Client
     */
    protected $client;

    /**
     * Creates a new Controller Instance
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('app');
        $this->client = new Client([
            'base_uri' => $this->endpoint,
            'headers' => ['PRIVATE-TOKEN' => 'xxx'],
        ]);
    }

    public function getLabels()
    {
        $result = $this->client->request('GET', '/labels');
        return $result;
    }
}

If I run the method getLabels I get this error

Class 'Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory' not found

I've already the "symfony/psr-http-message-bridge": "^1.1" in my composer.json.

What is the problem with this request?

02 Nov
4 months ago

markusheinemann started a new conversation Laravel Collective Best Way For Validation

Hello,

I'm currently using the Forms & Html Module from https://laravelcollective.com to create my Forms. But how can I validate the form fields. Currently I'm usign the "Form Model Binding" as describend in the Docs (https://laravelcollective.com/docs/5.0/html#form-model-binding)

Here is my Form (unnecesarry HTML removed):

{{ Form::model(new \App\Application(), ['route' => ['apps.update', $app],
                                        'method' => 'PUT']) }}
               
    {{ Form::label('name', __('apps.fields.name')) }}
    {{ Form::text('name', $app->name, ['class' => 'form-control',
                                       'placeholder' => __('apps.placeholders.name'),
                                       'autocomplete' => 'off']) }}

    {{ Form::label('slug', __('apps.fields.slug')) }}
    {{ Form::text('slug', $app->slug, ['class' => 'form-control',
                                       'placeholder' => __('apps.placeholders.slug'),
                                       'autocomplete' => 'off',
                                       'disabled']) }}
 

    {{ Form::submit(__('apps.buttons.create'),  ['class' => 'btn btn-primary']) }}

                    
{{ Form::close() }}

When someting wents wrong during the validation I got no errors on my form. What is wrong with my code? What is the best way to show the errors inline?

21 Oct
5 months ago

markusheinemann started a new conversation Can't Display PDF From Stroage

Hello,

I try to display a pdf file saved in the application storage. This is my code:

$path = storage_path('app/'.$userFile->path);
$type = mime_content_type($path);
$headers = [
    'Content-Type' => $type,
    'Content-Disposition' => 'inline; filename="'.basename($path).'"'
];
return Response::make(file_get_contents($path), 200, $headers);

But in Firefox I got a message the the PDF can't display correct. With other PDF readers I have similar problems.

For debugging I tried to open the path stored in $path with the file:/// protocol. This work's. So the PDF is vaild after uploading.

What is wrong?

18 Oct
5 months ago

markusheinemann started a new conversation Foreign Key With Strings Not Working

Hi,

I'm trying to create a fk between tow tables. Here are my migrations:

 public function up()
    {
        Schema::create('contracts', function (Blueprint $table) {
            $table->increments('id');
            // Some other cols removed for this post
            $table->string('user_file_path');
            $table->timestamps();
            $table->foreign('user_file_path')->references('path')->on('user_files');
        });
    }

and

public function up()
    {
        Schema::create('user_files', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('application_id')->unsigned();
            $table->string('random', 32);
            $table->string('path');
            $table->timestamps();
            $table->foreign('application_id')->references('id')->on('applications');
        });
    }

I get this error after running php artisan migrate

´´´ General error: 1005 Can't create table e `dashbo.`.`#sql-1890 (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table e `contra add constraint t `contracts_user_file_path_fore foreign key ((`user_file_p) references s `user_fi ((`p)) ´´´

What am I doing wrong?

15 Oct
5 months ago

markusheinemann left a reply on Verification Email Not Send

Which letters do you mean?

markusheinemann started a new conversation Verification Email Not Send

Hello,

I've setup the Laravel vertification with the description from the offical docs. https://laravel.com/docs/5.7/validation

When a new user submits the register form the verification email don't arrives in the users inbox. But when the user click the resend button everything works fine. What is the problem?

09 Oct
5 months ago

markusheinemann left a reply on Problem With Class Autoloader?

Just run

composer clear-cache
composer dump-autoload

markusheinemann started a new conversation Can't Disable Maintenance Mode

Hi,

I've put my Laravel into the maintenance mode with

php artisan down

No I try to disable the mode with the command from the docs ´php artisan up´ but nothing happends.

I've clear all Laravel caches and my browser cache. What is wrong?