rin4ik

rin4ik

FULL-STACK DEVELOPER at YOU CLOUD

23 y.o. Ferghana, Uzbekistan

Hire Me

Member Since 1 Year Ago

Experience Points 266,860
Experience
Level
Lessons Completed 1352
Lessons
Completed
Best Reply Awards 196
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

08 Nov
1 week ago

rin4ik left a reply on Please Bring Back The Older Laracasts Design

@jeffreyway can you please return country flags?????

15 Oct
1 month ago

rin4ik left a reply on Inserting Data To Input Group

please see the result of $project->users what you get?

@php dd($project->users); @endphp
28 Sep
1 month ago

rin4ik left a reply on How To Execute 'LIKE' Raw Query With Binding

try this

DB::select("SELECT * FROM `users` WHERE `name` LIKE '%' . $request->name . '%'");
21 Sep
1 month ago

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

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

20 Sep
1 month ago

rin4ik left a reply on Call Data With Ajax

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;
            });
16 Sep
2 months ago

rin4ik left a reply on How To Show Images Witch Are In Storage Folder

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

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

05 Sep
2 months ago

rin4ik left a reply on Downgrade Form Laravel 5.6 To 5.5

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

28 Aug
2 months ago

rin4ik left a reply on Vuex - Passing State To Components.

u need to define store inside vue instance

const app = new Vue({

  el:'#app',
  router ,
  store: store
  
})
17 Aug
3 months ago

rin4ik left a reply on Uncaught TypeError: Cannot Set Property '$' Of Undefined

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?

08 Aug
3 months ago

rin4ik left a reply on Laravel-mix With Toastr Notification (laravel 5.6)

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

26 Jul
3 months ago

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

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

24 Jul
3 months ago

rin4ik left a reply on Uncaught ReferenceError: $ Is Not Defined - Laravel 5.5

inside app.js did you require bootstrap js file?

require('./bootstrap');

rin4ik left a reply on How To Delete Record From Foreign Key Constraint ?

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

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

rin4ik left a reply on Route [cart.index] Not Defined ERROR

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

13 Jul
4 months ago

rin4ik started a new conversation LARACON TICKETS 20% DISCOUNT

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!

07 Jul
4 months ago

rin4ik left a reply on Props Issue

<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

add this

get_sentence (this.sentenceName,this.sentenceID) {
                axios.get('/'+this.sentenceName+'/'+this.sentenceID)
04 Jul
4 months ago

rin4ik left a reply on How To Inherit Background Color

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

rin4ik started a new conversation How To Inherit Background Color

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

03 Jul
4 months ago

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

validation failed. dd the request inside store method.

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

laravel welcome page works? show us please your blade templates

rin4ik left a reply on AWS S3/ File Url() Method

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

rin4ik left a reply on AWS S3/ File Url() Method

@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

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>
02 Jul
4 months ago

rin4ik left a reply on Bootstrap 4 Datetimepicker Change Format

try this

format: 'yyyy-mm-dd'

rin4ik left a reply on Error On Templating

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>
01 Jul
4 months ago

rin4ik left a reply on Laravel Collection Values To Vue Array

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

30 Jun
4 months ago
27 Jun
4 months ago

rin4ik left a reply on Failed To Open Stream: No Such File Or Directory

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

26 Jun
4 months ago

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

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

24 Jun
4 months ago

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


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

rin4ik left a reply on Count Comments Associated With A Post

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.

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

23 Jun
4 months ago

rin4ik left a reply on Method Should Not Be Called Statically....

with this?

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

rin4ik left a reply on How To View A Function From Model To Blade.

@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.

with this?

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