Member Since 2 Years Ago

Experience Points 24,600
Experience Level 5

400 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 242
Best Reply Awards 0
Best Reply
  • start-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-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-token Created with Sketch.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

06 Jul
1 year ago

3Descape left a reply on Custom 413 PostTooLarge Exeption Handling

Thank you very, very much, this fixed it for me! Toyed around with these already, but seems like I did something wrong. Thank you very much again!

3Descape left a reply on Custom 413 PostTooLarge Exeption Handling

Thank you very much for this tip, I am going to use this as a fallback solution! Still I would like to use the custom exeption handling as I have several file uplouds in my application and this would be a way to handle it globally and not per controller/fileuploud. Also it worked in the past, so there has to be a solution to this problem..

3Descape left a reply on Custom 413 PostTooLarge Exeption Handling

First of all thank you for answering. I'm fine with the exeption and I don't wan't to increase post_max_size or uploud_max_filesize. Even if I do so, I still need to handle the error, because I can't allow the user to uploud a file of any size.

The result I would like to get is that only my custom json object is included in the response, so I can handle the error on the client side with vue. Maybe someone has an idea what part of the laravel application or xampp is rendering the first error part and whether it is possible to disable it or not. Thx in advance!

3Descape started a new conversation Custom 413 PostTooLarge Exeption Handling

Hellor everybody!

When posting a too large file on my Xampp testserver I get an expected PostTooLargeException. I use custom exeption handling, so the error is formatted in json and I can display a custom message in german, that I then output in my vue component.

Handler.php in render function:

        if ($exception instanceof PostTooLargeException) {
            $message = ['errors' => ['file' => ['Datei ist zu groß.']]];
            return response()->json($message, 413);

Now my problem: The response not only contains my json error object, but also a message I can't get rid of:

Warning: POST Content-Length of 48764135 bytes exceeds the limit of 10485760 bytes in Unknown on line 0
{"errors":{"file":["Datei ist zu gro\u00df."]}}

Where the "Warning: POST Content-Length..." is the unwanted part of the response.

Maybe someone knows whether Laravel puts this in the response or if I have to disable this somewhere in my Xampp config files. Anyway, any help is much appreciated!

20 Oct
1 year ago

3Descape started a new conversation Adldap Authentication Doesn't Work, While Adldap::auth()->attempt() Does

Hello, I am trying to make use of the Adldap package and running into the errror where I only get the message "these credentials do not match our records" when I am trying to log in. The annoying thing is that Adldap::auth()->attempt('euler', 'password') returns true . (I am using this as a testserver: http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/). I have made the changes as descripted here: https://github.com/Adldap2/Adldap2-Laravel/blob/master/docs/quick-start.md and I also do use ùsernamein the form and LoginController. This is how my .env looks like:



Here is my adldap_auth.php


return [

    'connection' => env('ADLDAP_CONNECTION', 'default'),

    'provider' => Adldap\Laravel\Auth\DatabaseUserProvider::class,

    'resolver' => Adldap\Laravel\Auth\Resolver::class,

    'importer' => Adldap\Laravel\Auth\Importer::class,

    'rules' => [



    'scopes' => [



    'usernames' => [

        'ldap' => 'userprincipalname',

        'eloquent' => 'username',


    'login_fallback' => env('ADLDAP_LOGIN_FALLBACK', false),

    'password_sync' => env('ADLDAP_PASSWORD_SYNC', true),

    'windows_auth_attribute' => ['samaccountname' => 'AUTH_USER'],

    'sync_attributes' => [

        'username' => 'userprincipalname',
        'name' => 'cn',



and adldap.php


return [

    'connections' => [

        'default' => [

            'auto_connect' => true,

            'connection' => Adldap\Connections\Ldap::class,

            'schema' => Adldap\Schemas\ActiveDirectory::class,

            'connection_settings' => [

                'account_prefix' => env('ADLDAP_ACCOUNT_PREFIX', ''),
                'admin_account_prefix' => env('ADLDAP_ADMIN_ACCOUNT_PREFIX', ''),

                'account_suffix' => env('ADLDAP_ACCOUNT_SUFFIX', ''),

                'domain_controllers' => explode(' ', env('ADLDAP_CONTROLLERS', 'corp-dc1.corp.acme.org corp-dc2.corp.acme.org')),

                'port' => env('ADLDAP_PORT', 389),

                'timeout' => env('ADLDAP_TIMEOUT', 5),

                'base_dn' => env('ADLDAP_BASEDN', 'dc=corp,dc=acme,dc=org'),

                'admin_account_suffix' => env('ADLDAP_ADMIN_ACCOUNT_SUFFIX', ''),

                'admin_username' => env('ADLDAP_ADMIN_USERNAME', 'username'),
                'admin_password' => env('ADLDAP_ADMIN_PASSWORD', 'password'),

                'follow_referrals' => false,

                'use_ssl' => false,
                'use_tls' => false,





08 Oct
1 year ago

3Descape left a reply on Nginx Gives 404 Not Found

thank you very much for your answear! I found this tutorial in the meantime, which guided me through the setup: https://serversforhackers.com/c/lemp-nginx-php-laravel

05 Oct
1 year ago

3Descape started a new conversation Nginx Gives 404 Not Found

hello everybody. I am totally new to setting up a server with laravel. I have bought a server from digitalocean with lemp and can't get it to work, as I always get a 404 Not found with my laravel project, while the default index.html works fine. I have to note though, that I updated php to 7.1 with those commands https://ayesh.me/Ubuntu-PHP-7.1. Maybe someone can provide a step by step introduction on how to set up a server with digital ocean and laravel 5.5. I would be so grateful after more than 6 hours of frustration.

In the var/log/nginx/error.log file I saw the following error: 2017/10/05 19:37:57 [crit] 32391#32391: *1 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client:, server: localhost, request: "GET / HTTP/1.1", upstream: "fas$

My /etc/nginx/sites-enabled/digitalocean file

# You may add here your
# server {
#       ...
# }
# statements for each of your virtual hosts to this file

# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.

server {
        listen 80;
        listen [::]:80 default_server;

        root /var/www/html/Maturamanager/public;
        index index.php index.html index.htm;

        # Make site accessible from http://localhost/
        server_name localhost;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ /index.php$is_args$args;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules

        error_page 404 /404.html;
        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
                root /usr/share/nginx/html;

        location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #location ~ /\.ht {
        #       deny all;

# another virtual host using mix of IP-, name-, and port-based configuration
19 Sep
1 year ago

3Descape left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined.

@ejdelmonico You are my hero! Wow, never would have thought of that one.. It's weard though, as this sould work I guess... Do you think it's worth reporting? Anf if yes, is it a vue-template-compiler issue or Laravel one.

3Descape left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined.

@ejdelmonico I have Vue 2.4.4 @sutherland I do have it in my admin.js .. I don't include it in the bootstrap.js as I want my frontend to not have vue included but the rest of the dependencies like jquery for bootstrap and that stuff.. @PaulClarke normally we should not have to install anything like this.. also reading through the package description: "only need it if you are writing build tools with very specific needs".

I would love to see if anybody can get vue to run on latest Laravel to check, whether it only occures here, or if it is something worth reporting.

3Descape left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined.

installing it fresh didn't work either.. I think I will revert to the last working commit for now, although I would really love to know what causes this.. when I do npm update, it also updates [email protected] where it has been 1.0 according to my package.json in an earlier commit.. Might that be the reason?

3Descape left a reply on [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined.

not only once.. I tried npm run dev as well as npm run watch

3Descape started a new conversation [Vue Warn]: Failed To Mount Component: Template Or Render Function Not Defined.

I did a npm update and composer update today and now I get the error everywhere where I use vue : [Vue warn]: Failed to mount component: template or render function not defined, even though everything worked perfectly fine before. This is my package.json:

  "private": true,
  "scripts": {
    "dev": "npm run development",
    "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch-poll": "npm run watch -- --watch-poll",
    "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "prod": "npm run production",
    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  "devDependencies": {
    "axios": "^0.16.2",
    "bootstrap": "^4.0.0-beta",
    "cross-env": "^5.0.5",
    "jquery": "^3.1.1",
    "laravel-mix": "^1.4.4",
    "lodash": "^4.17.4",
    "popper.js": "^1.12.3",
    "vue": "^2.4.4",
    "vue-chartjs": "^2.8.7"
  "dependencies": {
    "chart.js": "^2.7.0",
    "dropzone": "^5.1.1",
    "font-awesome": "^4.7.0",
    "marked": "^0.3.6",
    "moment": "^2.18.1",
    "purify-css": "^1.2.6",
    "purifycss-webpack": "^0.7.0",
    "tempusdominus-bootstrap-4": "^5.0.0-alpha9"

and my app.js


window.Vue = require('vue');

Vue.component('dashboard', require('./components/Dashboard.vue'));
Vue.component('roles', require('./components/Roles.vue'));
Vue.component('sites-edit', require('./components/SitesEdit.vue'));
const app = new Vue({
    el: '#app',

I would really appreciate if anybody has an idea of what it could be.

14 Jul
2 years ago

3Descape left a reply on Nested Relationship "contains" Check

Thank you very much for your answear, but after rethinking my approach and starting with a fresh mind I found a simpler solution.

My basic structure is that I have a Permission model. Each Permission belongsToMany Role(s), which belongsToMany User(s).

Now I moved my hasPermission function into the User model and there I use the following, to check if a user has a certain permission:

    public function hasPermission($permission)
        $contains = $this->roles()
        ->map(function($item) use ($permission){
            return $item->permissions
            ->contains('name', $permission);

        return !! in_array(true, $contains->toArray());

I hope this helps if anyone in the future has the same problem.

13 Jul
2 years ago

3Descape started a new conversation Nested Relationsship Contains Check

Hello everybody. I am trying to check if the name field of an eagar loaded collection contains a certain string.

So first I'm loading all the roles assigned to a user and all the permissions for each role.

$roles = Auth::user()->roles()->with('permissions')->get();

        "id": 1,
        "name": "admin",
        "label": "Admin is cool",
        "created_at": "2017-07-13 10:39:37",
        "updated_at": "2017-07-13 10:39:37",
        "pivot": {
            "user_id": 1,
            "role_id": 1
        "permissions": [
                "id": 1,
                "name": "create_event",
                "label": "Can create an event",
                "created_at": "2017-07-13 10:39:37",
                "updated_at": "2017-07-13 10:39:37",
                "pivot": {
                    "role_id": 1,
                    "permission_id": 1


Now I'm trying to check, whether the roles assigned with the user contain a permission, that has the name 'create_event'.. The "contains" method doesn't seem to work on eager loaded relationships and I could't achive this with a foreach loop. But I'm not the most experienced user, so maybe someone can help me out ;D

06 Apr
2 years ago

3Descape left a reply on Connection Not Save Warning In Login Form Xampp

sorry I didn't answear. yea i had set it.. I think it's only because of firefox and the web moving to the https standart and me not having https set up.. I tested it with https on my xampp server and the error was gone

19 Mar
2 years ago

3Descape started a new conversation Connection Not Save Warning In Login Form Xampp

Hello everybody. When I run my application via xampp I get a warning in my login form that says: This connection is not save. However, when I run it via php artisan serve it's gone..What do I have to do so that my connection is save on xampp too? Here is a picture of the error I get (sadly it's german) https://drive.google.com/file/d/0B_sHVsVG0DnzNFlGU0l4aE5FdFU/view?usp=sharing