rin4ik

Full-stack php developer at YOU CLOUD

Hire Me

Experience

200,570

195 Best Reply Awards

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

21st September, 2018

rin4ik left a reply on Submit Post Route Returning "page Can’t Be Found" • 2 days ago

run php artisan route:list and check if route actually exists

20th September, 2018

rin4ik left a reply on Call Data With Ajax • 3 days ago

the problem with csrf . include header to vue resource or use axios.

     axios.post('/auth/recover', {  email: app.email }).then(function () {

                success: function () {
                    app.success = true
                },
                error: function (resp) {
                    app.error = true;
                    app.errors = resp.response.data.errors;
                },
                redirect: null;
            });

16th September, 2018

rin4ik left a reply on How To Show Images Witch Are In Storage Folder • 1 week ago

you have spaces in your file name I reckon that's the problem. 52_n - Copy.jpg'

rin4ik left a reply on How To Show Images Witch Are In Storage Folder • 1 week ago

src="{{storage_path('public/houses/45209-16-2018_0852am20621085_1499113356818591_4268979222683976152_n - Copy.jpg'}}"

5th September, 2018

rin4ik left a reply on Downgrade Form Laravel 5.6 To 5.5 • 2 weeks ago

@hockeymonkey96 here you are https://laravel.com/docs/5.7/upgrade . composer.json file is located in the root of your laravel project

28th August, 2018

rin4ik left a reply on Vuex - Passing State To Components. • 3 weeks ago

u need to define store inside vue instance

const app = new Vue({

  el:'#app',
  router ,
  store: store
  
})

17th August, 2018

rin4ik left a reply on Uncaught TypeError: Cannot Set Property '$' Of Undefined • 1 month ago

did you wrap it with script tags?

<script>
$(document).ready( function () {

  $('#table_id').DataTable();
} );
</script>

and did you import app.js file into your template?

8th August, 2018

rin4ik left a reply on Laravel-mix With Toastr Notification (laravel 5.6) • 1 month ago

everything looks fine . did you run npm run dev after that? and hard refresh the browser (ctrl+f5) ?

26th July, 2018

rin4ik left a reply on How To Display Products Of A Category And All Its Sub-categories? • 1 month ago

how I use categories with subcategories in my project

<?php

namespace App\Repositories;

use App\Category;

class SubCategory
{
    public function getCategories()
    {
        $categories = Category::where('parent_id', null)->get();//united
        $categories = $this->addRelation($categories);

        return $categories;
    }

    public function selectChild($id)
    {
        $categories = Category::where('parent_id', $id)->get(); //rooney

        $categories = $this->addRelation($categories);

        return $categories;
    }

    protected function addRelation($categories)
    {
        $categories->map(function ($item, $key) {
            $sub = $this->selectChild($item->id);

            return $item = array_add($item, 'child_categories', $sub);
        });

        return collect($categories);
    }
}

 public function index()
    {
        $subcategory = new SubCategory;
        $allCategories = Category::all();
        try {
            $categories = $subcategory->getCategories();
        } catch (Exception $e) {
            //no parent category found
        }
        return view('.categories.index', compact('categories', 'allCategories'));
    }

output https://d.pr/i/Wnnw2r

24th July, 2018

rin4ik left a reply on Laravel Wikipedia (MediaWiki) Grabber • 1 month ago

great

rin4ik left a reply on Uncaught ReferenceError: $ Is Not Defined - Laravel 5.5 • 1 month ago

inside app.js did you require bootstrap js file?

require('./bootstrap');

rin4ik left a reply on How To Delete Record From Foreign Key Constraint ? • 1 month ago

in your migration file for productimage after fields declaration add this

$table->foreign('product_id')->references('id')->on('products')->onDelete('cascade');

rin4ik left a reply on Route [cart.index] Not Defined ERROR • 1 month ago

What is not included ? try to run php artisan route:clear

rin4ik left a reply on Route [cart.index] Not Defined ERROR • 1 month ago

please run php artisan route:list and make sure you have that named route

13th July, 2018

rin4ik left a reply on LARACON TICKETS 20% DISCOUNT • 2 months ago

anybody?

rin4ik started a new conversation LARACON TICKETS 20% DISCOUNT • 2 months 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 months 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 months 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 months ago

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

rin4ik started a new conversation How To Inherit Background Color • 2 months 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 months 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 months ago

laravel welcome page works? show us please your blade templates

rin4ik left a reply on AWS S3/ File Url() Method • 2 months 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 months 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 months 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 months ago

@maungsi sure

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

try this

format: 'yyyy-mm-dd'

rin4ik left a reply on Error On Templating • 2 months 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 months 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 • 2 months ago

@Msoft check what error do you have now?

rin4ik left a reply on Vue Not Updating Binded Value • 2 months 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 • 2 months 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 • 2 months 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 • 2 months ago

hah

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


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

rin4ik left a reply on Count Comments Associated With A Post • 2 months 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. • 2 months 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.... • 3 months ago

with this?

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

rin4ik left a reply on How To View A Function From Model To Blade. • 3 months 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. • 3 months ago

with this?

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

rin4ik left a reply on Last Id Returns Nothing • 3 months ago

you can it with dd

dd($optical)

rin4ik left a reply on Last Id Returns Nothing • 3 months ago

try with fresh() method()

$optical->fresh()->id

rin4ik left a reply on How To Correctly Receive Ajax's Post Data? • 3 months 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 • 3 months ago

@Melodia something wrong with your controller

Edit Your Profile
Update

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