devsrv

devsrv

Member Since 1 Year Ago

Developer at Creative Filament

Experience Points 4,570
Experience Level 1

430 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 44
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.

29 Aug
10 months ago

devsrv left a reply on How To Do Server Side Rendering With Laravel + React.js + Redux?

spatie/laravel-server-side-rendering is a great package for this. Here you can find video tutorial for React SSR with Laravel - https://youtu.be/uO42Kpa4pvI

02 Dec
1 year ago

devsrv left a reply on Elixir : Delete All Comments In Js And CSS Files

@wowrudy Laravel 5.5 uses Mix so you don't need to do anything, webpack does all these staffs for you

devsrv left a reply on Where To Put Custom .babelrc

I'm actually new to all these Babel & Webpack stuffs. This problem actually solved by using stage-2 preset but Babel says Stage-X (Experimental Presets) so is it safe to use?

here is my .babelrc

{
    "plugins": [
        "syntax-dynamic-import",
        "transform-react-jsx-source"
    ],
    "presets": [
        [
            "env",
            {
                "targets": {
                    "browsers": [
                        "> 1%",
                        "last 2 versions"
                    ]
                }
            }
        ],
        "stage-2",
        "react"
    ]
}

devsrv left a reply on Where To Put Custom .babelrc

Thanks @tykus its working perfectly

I was trying to compile react with the below new syntax but webpack was unable to do that

class FormInpFld extends Component {
    state = { value: '' };

    handleValueChange = (e) => {
        this.setState({ value: e.target.value });
        this.props.onValueChange();
    }

    render = () => {
        const field = <input className="form-control" type={this.props.fieldtype} 
                            placeholder={this.props.placeholder}
                            onChange={this.handleValueChange} 
                            value={this.state.value} />

        return field;
    }
}

export default FormInpFld;

but after using the custom .babelrc with babel-preset-env and babel-preset-stage-2 it is finally possible

01 Dec
1 year ago

devsrv started a new conversation Where To Put Custom .babelrc

If I want to put my custom .babelrc file can I do that? and where is the place I can put it to

23 Aug
1 year ago

devsrv left a reply on Select Only One Column From BelongsTo Relationship

@mstnorris thanks I was looking for a straight answer for the same question. seems like there is noway we can do it in a eloquent style but query builder joining is the only way because relations always return all the columns

07 Aug
1 year ago

devsrv left a reply on Redis Configuration On Production

I'll actually share what I do still I would like to know from the experts :)

  1. as you are in ubuntu just pull redis in by: apt-get install redis-server

  2. if you are using latest version of Laravel then most likely you already have pulled the predis/predis as it is in your composer.json already.

  3. if you do not manually change the config then redis by default uses 6379 port & you just need to fillup the config/database.php (actually you don't have to cause the default group settings is using the 6379 port)

  4. now in terminal type redis-cli then type ping and in response if you get PONG from redis then all set

  5. go to config/session.php line 73 change 'connection' => 'redis' to-> 'connection' => 'default'

  6. in your env file SESSION_DRIVER=redis

Done... :)

01 Aug
1 year ago

devsrv left a reply on How To Deploy A Laravel Application?

@AbdallahSabri Homestead is the best option but the simplest one is just pull it down with composer and put in your xampp/wamp root and point apache to the public folder of Laravel that's it :)