rin4ik

Full-stack developer at Develax

Hire Me

Experience

199,110

193 Best Reply Awards

  • Member Since 1 Year Ago
  • 703 Lessons Completed
  • 44 Favorites

13th July, 2018

rin4ik left a reply on LARACON TICKETS 20% DISCOUNT • 1 week ago

anybody?

rin4ik started a new conversation LARACON TICKETS 20% DISCOUNT • 1 week ago

Hello, developers community!

I was about to go to three Laracons ( #laraconus, #laraconEU, #laraconAU ) this year, but my plans changed. I'd like to sell those tickets with 20% discount from the original price.

Who's interested, please, email me - [email protected]

Thanks!

7th July, 2018

rin4ik left a reply on Props Issue • 2 weeks ago

<script>
    import axios from 'axios';
    export default {
        data () {
            return {
                sentence:'',
        sentenceID: this.sentenceId,
        sentenceName: this.sentenceName
            }
        },
        props: ['sentenceID','sentenceName'],
        methods: {
            get_sentence (sentenceName,sentenceID) {
                axios.get('/'+sentenceName+'/'+sentenceID)
                .then(response => {
                    this.sentence = response.data;
                    console.log(response.data);
                }).catch();
            }
        },
        created: function() {
            this.get_sentence(this.sentenceName,this.sentenceID);
        },
    }
</script>

rin4ik left a reply on Props Issue • 2 weeks ago

add this

get_sentence (this.sentenceName,this.sentenceID) {
                axios.get('/'+this.sentenceName+'/'+this.sentenceID)

4th July, 2018

rin4ik left a reply on How To Inherit Background Color • 2 weeks ago

@click I've fixed it already. but thanks ;)

rin4ik started a new conversation How To Inherit Background Color • 2 weeks ago

is it possible to inherit background color from parent class ? thanks in advance. https://jsfiddle.net/0fwbx6mk/1/

3rd July, 2018

rin4ik left a reply on My Tests Return A 422 - Where Did I Go Wrong? • 2 weeks ago

validation failed. dd the request inside store method.

rin4ik left a reply on Object Not Found Error While Trying To Open A Web Page • 2 weeks ago

laravel welcome page works? show us please your blade templates

rin4ik left a reply on AWS S3/ File Url() Method • 2 weeks ago

can you please check network tab. what exact error do you have there

rin4ik left a reply on AWS S3/ File Url() Method • 2 weeks ago

@splendidkeen try to dd before it

dd($partner->logo_filename)

what you have correct file name?

rin4ik left a reply on How To Fix This Vuejs Warning • 2 weeks ago

create your local variables based on those props and use them instead of props.

export default {
    name: "addressForm",
    props: {
        countries: {
            type: Array,
            required: true
        },
        firstName: String,
        lastName: String,
        company: String,
        addressLine1: String,
        addressLine2: String,
        city: String,
        country: String,
        state: String,
        postal: String,
        phone: String,
        isRequired: {
            type: Boolean,
            default: true
        }
    },

    data() {
        return {
            states: [],
        form:{
        countries: this.countries,
        firstName: this.firstName,
        lastName: this.lastName,
        company: this.company
        //etc...        
        ....
       }
        };
    },

use it like below and change everywhere

<div class="control is-expanded">
                <label for="last_name" class="label">Last name</label>
                <input type="text" class="input" id="last_name" name="last_name" v-model="form.lastName" :required="isRequired">
            </div>

2nd July, 2018

rin4ik left a reply on Bootstrap 4 Datetimepicker Change Format • 2 weeks ago

@maungsi sure

rin4ik left a reply on Bootstrap 4 Datetimepicker Change Format • 2 weeks ago

try this

format: 'yyyy-mm-dd'

rin4ik left a reply on Error On Templating • 2 weeks ago

vue doesn't allow you to add more than 1 root element for template. just wrap everything in div

<div>
<parallax><img src="img/header.jpg" alt="Welcome to butterfly software developments"/></parallax>
<p>it will work</p>
</div>

1st July, 2018

rin4ik left a reply on Laravel Collection Values To Vue Array • 2 weeks ago

you can filter over your posts collection or map it and assign post name 'post_name' => post.name

30th June, 2018

rin4ik left a reply on Route [users.index] Not Defined • 3 weeks ago

@Msoft check what error do you have now?

rin4ik left a reply on Vue Not Updating Binded Value • 3 weeks ago

I think you need to change it here

function bidUp() {
    document.getElementById("bidInput").stepUp();
/// here  
}

27th June, 2018

rin4ik left a reply on Failed To Open Stream: No Such File Or Directory • 3 weeks ago

run composer dumpautoload hard refresh the browser(ctrl+f5). make a global in your editor find CertificatesController and replace it with CertificateController

26th June, 2018

rin4ik left a reply on How To Update Record If No Image Is Added | VueJs • 3 weeks ago

@Melodia check network tab to know what exact error do you get

24th June, 2018

rin4ik left a reply on Laravel Destroy Now Static • 3 weeks ago

hah

rin4ik left a reply on Property [citirs] Does Not Exist On This Collection Instance. • 3 weeks ago


$all = SchoolsList::with('cities')->findOrFail($schoolsList);

rin4ik left a reply on Count Comments Associated With A Post • 3 weeks ago

with this?

public function comments(){
    return $this->hasMany('App\Comment');
}

and also try to hard refresh the browser (ctrl+f5)

rin4ik left a reply on Property [citirs] Does Not Exist On This Collection Instance. • 3 weeks ago

You have a mistake somewhere instead of cities you wrote citirs. Search word citirs and replace with cities

23rd June, 2018

rin4ik left a reply on Method Should Not Be Called Statically.... • 4 weeks ago

with this?

$meal = Meal::where('id', $meal_id)->firstOrFail();

rin4ik left a reply on How To View A Function From Model To Blade. • 4 weeks ago

@marvino you have to pass dateoflastpromotion required by step function.

->step(append here dateoflastpromotion)

and it will work

rin4ik left a reply on How To View A Function From Model To Blade. • 4 weeks ago

with this?

<td>{{$value->step(dateoflastpromotion)}}</td>

rin4ik left a reply on Last Id Returns Nothing • 4 weeks ago

you can it with dd

dd($optical)

rin4ik left a reply on Last Id Returns Nothing • 4 weeks ago

try with fresh() method()

$optical->fresh()->id

rin4ik left a reply on How To Correctly Receive Ajax's Post Data? • 4 weeks ago

@AlexanderKim if you visit that route in browser you will get get the output

22nd June, 2018

rin4ik left a reply on How To Use The Slug As Url • 4 weeks ago

@Melodia something wrong with your controller

rin4ik left a reply on How To Use The Slug As Url • 4 weeks ago

remove dd . what now returns in this url post ? http://website.local/single/post/example

rin4ik left a reply on How To Correctly Receive Ajax's Post Data? • 4 weeks ago

with this?

$file = $request->file('avator');
 return response()->json($file->getRealPath());

rin4ik left a reply on How To Use The Slug As Url • 4 weeks ago

just use this

$post = Post::with('category', 'user')->where('slug', $slug)->first();
dd($post(

what u have now

rin4ik left a reply on Flash Message Reappearing • 4 weeks ago

try this as well

if(\Session::has('deleted')) {
                notif({
                    type: "success",
                    msg: "{{Session('deleted')}}",
                    position: "right",
                    fade: true,
                    multiline: true
                });
            }

            if(\Session::has('created')) {
                notif({
                    type: "success",
                    msg: "{{Session('created')}}",
                    position: "right",
                    fade: true,
                    multiline: true
                });
            }

            if(\Session::has('updated')) {
                notif({
                    type: "success",
                    msg: "{{Session('updated')}}",
                    position: "right",
                    fade: true,
                    multiline: true
                });
            }

rin4ik left a reply on How To Use The Slug As Url • 4 weeks ago

@Melodia what did you pass to controller id or slug? please dd slug inside controller

public function single($slug){
dd($slug)
}

rin4ik left a reply on How To Use The Slug As Url • 4 weeks ago

@Melodia did you enable history mode?

rin4ik left a reply on Flash Message Reappearing • 4 weeks ago

did you try just like this

if({{ Session::has('deleted') }}) {
                notif({
                    type: "success",
                    msg: "{{Session('deleted')}}",
                    position: "right",
                    fade: true,
                    multiline: true
                });
            }

            if( {{ Session::has('created')}} ) {
                notif({
                    type: "success",
                    msg: "{{Session('created')}}",
                    position: "right",
                    fade: true,
                    multiline: true
                });
            }

            if( {{ Session::has('updated')}} ) {
                notif({
                    type: "success",
                    msg: "{{Session('updated')}}",
                    position: "right",
                    fade: true,
                    multiline: true
                });
            }

rin4ik left a reply on Problem Displaying A Single Comment For A Post With A One-many Relationship • 4 weeks ago

@SVIP maybe some of your posts don't have comments

rin4ik left a reply on Problem Displaying A Single Comment For A Post With A One-many Relationship • 4 weeks ago

@SVIP some of your posts don't have body attribute. with this?

{{ optional($post->comments->sortByDesc('likes')->first())->body }}

rin4ik left a reply on Problem Displaying A Single Comment For A Post With A One-many Relationship • 4 weeks ago

with this?

{{ $post->comments->sortByDesc('likes')->first()->body }}

rin4ik left a reply on Call To A Member Function Article() On Null • 4 weeks ago

@irankhosravi how is this

Method categories does not exist. related to your original question ?

rin4ik left a reply on How To Use The Slug As Url • 4 weeks ago

with this?

{
    path: '/post/:slug',
    name: 'post',    
    component: Single
}
 <router-link :to="{name:'post', params: {slug: post.slug}}">

rin4ik left a reply on Call To A Member Function Article() On Null • 4 weeks ago

for some reason auth()->user()is empty. you can check it by using dd(auth()->user())

21st June, 2018

rin4ik left a reply on Add Timestamp And Reverse Messages • 1 month ago

If you make a request to the backend list changes.

rin4ik left a reply on Add Timestamp And Reverse Messages • 1 month ago

<template>
<ul class="chat">
<li class="left clearfix" v-for="chat_message in chat_messages">
<div class="chat-body clearfix">
<div class="header">
<strong class="primary-font">
{{ chat_message.user.name }}
</strong>
</div>
<small>{{ createdAtDateHumanReadable(chat_message.created_at) }}</small>
<p>{{ chat_message.body }}</p>
</div>
</li>
</ul>
</template>

<script>
  export default {
    props: ['chat_messages'],
    methods: {
    createdAtDateHumanReadable(time) {
    return moment(time).format("MM/DD/YYYY")
    }
    }
};
</script>
Edit Your Profile
Update

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