ncrousset

Full stark developer at forcesos.com

Experience

9,900

1 Best Reply Awards

  • Member Since 1 Year Ago
  • 91 Lessons Completed
  • 25 Favorites

12th September, 2017

ncrousset left a reply on Retrieve User Name In Vue.js • 2 months ago

You use props and pass it on when calling the component

export default {
        data(){
            return{
                messageText: ''
            }
        },
     props: {
            userName: String ,
    },
        methods:{
            sendMessage(){
                this.$emit('messagesent', {
                    message:this.messageText,
                    user: {
                    name: this.userName
                            }
                });
                this.messageText = '';
            }
        }
    }

and

<my-component :user-name={{ Auth::user()->name }}></my-componet>

28th February, 2017

ncrousset started a new conversation Which Is The Best Homestead Or Valet Why? • 8 months ago

Advantages and disadvantages

21st February, 2017

ncrousset started a new conversation I Have A Problec Whith Notification • 9 months ago

I have a problem sending a message, I print the html with the method line. I want to print a list, but I do not want to create a view for this.

Is there any method that can insertart html in the body of my mail, without using views.

public function toMail($notifiable) { $url = url('/');
    return (new MailMessage)
                ->success()
                ->subject('New payment applied')
                ->greeting('Hi '. $this->Application->Profile->name .'!')
                ->line('We have got your payment with details below. '
                        . '<ul>'
                        . '<li>Amount: $' . number_format($this->Payment->amount, 2) . ' DOP</li>'
                        . '<li>Payment type: ' . $this->Payment->PaymentType->name . '</li>'
                        . '<li>Payment mode: ' . $this->Payment->PaymentMode->name . '</li>'
                        . '</ul>')
                ->line('Thank you for your payment!')
                ->action('More details', $url)
                ->line('Message sent by Ofit Platform'); 
}

16th February, 2017

ncrousset started a new conversation What Is The Benefit When Using Laravelcollective From And Not Using HTML • 9 months ago

What is the benefit of creating forms with the laravelcollective?

14th February, 2017

ncrousset left a reply on Injection Dependency In An Update Method From The Router • 9 months ago

Yes, I am using the different name on the route but I repair it and everything is fine, Gracias @swalker2

ncrousset left a reply on Injection Dependency In An Update Method From The Router • 9 months ago

Sorry swalker2, I clicked to solve but it does not modify me in the DB. the update method return TRUE but no modify in the DB.

ncrousset started a new conversation Injection Dependency In An Update Method From The Router • 9 months ago

Hello.

When I try to modify a record, eloquent creates a new record instead of modifying the instantiated.

19th July, 2016

ncrousset left a reply on Use Config() Helper Or Config::get() In Model • 1 year ago

this is other method, but the two method is good.

https://laracasts.com/discuss/channels/laravel/config-helper-not-working-inside-of-model

which is the best method?

ncrousset started a new conversation Use Config() Helper Or Config::get() In Model • 1 year ago

I can not use config() in a model? example;

protected $table = config('books.tables.core.users');

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.