angeloa

angeloa

Member Since 4 Years Ago

Experience Points
725
Total
Experience

4,275 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
30
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • 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.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    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.

Level 1
725 XP
06 Oct
3 years ago

angeloa left a reply on Laravel Singleton Instance Keeps Recreating

@joshralph how can I manage to get the same instance across my whole application without doing queries, is that even possible?

angeloa started a new conversation Laravel Singleton Instance Keeps Recreating

I created a singleton instance using a ServiceProvider:

public function register() {
        $this->app->singleton('Context', function ($app) {
            return new ContextManager();
        });
    }

Registrered its Facade:

protected static function getFacadeAccessor() {
        return 'Context';
    }

This works perfectly, I can get my the instance using Context::

But when I set a variable in my ContextManager, when going to another page, the variable is unset and I have a clear ContextManager. Why is that? I understand this has something to do with my sessions, but I've already tried to set variables using the Session:: facade, and that works like its supposed to.

What am I missing here?

07 Jun
4 years ago

angeloa left a reply on How To Remove The Error Stack Traces From Logging

@bobbybouwmann that SO is not relevant, read the accepted answer and you'll see that it only logs errors depending on the app debug setting.

I'm looking for a way to make sure the error is posted, but only the error, not the stack trace.

angeloa started a new conversation How To Remove The Error Stack Traces From Logging

It's just really annoying to have to scroll all the way up everytime to see an error. How can I turn off the stack traces?

10 May
4 years ago

angeloa left a reply on How To Pass A Facade To A Composer Package

@JarekTkaczyk Thanks for the information. I searched a lot online, but I was unable to find a solution, I guess I was using wrong keywords. I thought it was something impossible, or something you don't want to do, so I decided to ask here.

angeloa started a new conversation How To Pass A Facade To A Composer Package

I'm using Doctrine (mitchellvanw/laravel-doctrine) and I just came across the Faker package and Nelmio/Alice. So I wanted to use them all together. For this to work, I need to pass my Doctrine object (facade = Doctrine) to the Nelmio Persister Class (__construct function requires it). I believe this is called Dependency Injection. But how do I pass a Facade to another Class? When I try to do it:

$a = new Persister(Doctrine); 

I get the error. Use of undefined constant Doctrine - assumed 'Doctrine'

How do I do this?

19 Apr
4 years ago

angeloa left a reply on [Elixir] Why Does Mix.sass Automatically Adds /sass/ In The Path?

Found the answer. Needed to create a path like this : '../vendor/bower_components etc.'

angeloa started a new conversation [Elixir] Why Does Mix.sass Automatically Adds /sass/ In The Path?

I have scss files in: ./resources/assets/vendor/bower ......

but I can't add them to my mix.sass because it automatically adds /sass/ in the path. So my path becomes:

./resources/assets/SASS/vendor/bower ...

How can I change that?

18 Apr
4 years ago

angeloa started a new conversation Gulpfile Elixir Merge Scss (includePaths?)

I've tried a thousand different things, but I just can't get this to work. It seems the tutorials on the Front-End series are old, because some functions changed. Anyways, I currently have this:

var elixir = require('laravel-elixir');


var paths = {
    'jquery': './vendor/bower_components/jquery/',
    'bootstrap': './vendor/bower_components/bootstrap-sass-official/assets/',
    'fontawesome': './vendor/bower_components/fontawesome/',
    'bootstraptwo': './resources/assets/vendor/bower_components/bootstrap-sass/assets/'
}

elixir(function(mix) {
    mix.sass('main2.scss', 'public/css/', {includePaths: [
            paths.bootstraptwo + 'stylesheets',
            paths.fontawesome + 'scss'
        ]})
        .copy(paths.bootstraptwo + 'fonts/bootstrap/**', 'public/fonts/bootstrap')
        .version([
            //'css/main.css',
        ])
});

the .sass functions doesn't include the bootstrap and fontawesome paths as it should (right?). I know the bootstraptwo path works because the files in the .copy function actually get copied. I just have no clue why elixir doesn't add the bootstrap stylesheets to my .css file. The only thing I see in my .css file, are the things I wrote in main2.scss.

(I've searched, A LOT, but nothing seems to fix my problem)

14 Apr
4 years ago

angeloa left a reply on Laravel + SCSS / SASS Workflow

@mstnorris I have Elixir setup. You 'gulp' everytime you make a change? Or am I missing something?

angeloa started a new conversation Laravel + SCSS / SASS Workflow

Hey guys,

I'm pretty new to Laravel, SASS and SCSS. What is your workflow while developing? How can you easily view changes made to SASS/SCSS?