coder_uzb

coder_uzb

Member Since 1 Year Ago

Experience Points 5,380
Experience Level 2

4,620 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 1
Lessons
Completed
Best Reply Awards 5
Best Reply
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.

23 Apr
1 month ago

coder_uzb started a new conversation Google Analytics Package For Vue Cli.

Hello guys, for laravel have this package for googly analytics https://github.com/spatie/laravel-analytics. For vue cli have package like this? Thank you. sorry for my english

12 Nov
6 months ago

coder_uzb left a reply on Auth Check Public Folder Php File?

@kvithalani . I fixed problem. I added in App\Http\Middleware\EncryptCookies.php file this code

 protected static $serialize = true;

coder_uzb left a reply on Auth Check Public Folder Php File?

@kvithalani I did everything, but did not work

coder_uzb left a reply on Auth Check Public Folder Php File?

@kvithalani Yes I runned this command

coder_uzb left a reply on Auth Check Public Folder Php File?

@kvithalani. Thank you for reply. But I before checked with this code.

require getcwd() . '/../../../../vendor/autoload.php';
    $app = require_once getcwd() . '/../../../../bootstrap/app.php';

    $kernel = $app->make('Illuminate\Contracts\Http\Kernel');

    $response = $kernel->handle(
        $request = Illuminate\Http\Request::capture()
    );

    $id = $app['encrypter']->decrypt($_COOKIE[$app['config']['session.cookie']]);
    $app['session']->driver()->setId($id);
    $app['session']->driver()->start();
    
    if(!$app['auth']->check()) return false;    
    return true;    

After Laravel 5.5 version, I have following error. unserialize(): Error at offset 0 of 40 bytes.

coder_uzb started a new conversation Auth Check Public Folder Php File?

Is it posible to use auth facade in a standard php file in public directory? I am using a third party plugin that scan the files in my file directory and display it as a clickable files in my ui. I want to authenticate the user logged in in my scan.php and scan only the files/folders that he/she created.

coder_uzb started a new conversation Unserialize(): Error At Offset 0 Of 40 Bytes

I am using Laravel 5.7 and integrating ServoCoder/RichFilemanager. When I am checking access to filemanager. I have the following error.

unserialize(): Error at offset 0 of 40 bytes
file": "/home/vagrant/Code/php/myproject/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php 149 line

How to fix it?

30 Oct
6 months ago

coder_uzb started a new conversation Global Variable Return Null In Laravel 5.7

Hi guys. I am using laravel 5.7 and in my controller. `` protected $x;

public function index() { $this->x = 22; }

public function other_index() { return $this->x; } `` When I call other_index() function variable x return null. How to fix it?

25 Sep
7 months ago

coder_uzb started a new conversation How To Get File Without Extension In Blade.

Hi guys. I have multiple upload. I uploaded 4 doc files. When I get this files in blade with foreach loop, I need just just file's name. How can I get? Sorry for my bad english.

06 Aug
9 months ago

coder_uzb left a reply on MySQL Said: Can't Connect To MySQL Server On '127.0.0.1' (4)

username:homestead address: 127.0.0.1 password:password port: 33060

I checked all, but not working

coder_uzb started a new conversation MySQL Said: Can't Connect To MySQL Server On '127.0.0.1' (4)

I am using homestead in vagrant machine. When I want to connect to database through Sequel Pro I have the following error. MySQL said: Can't connect to MySQL server on '127.0.0.1' (4). But through terminal working. How can fix it.

09 Jul
10 months ago

coder_uzb left a reply on Can't Connect To MySQL Server On '127.0.0.1' (4)

I understand you. My virtual machine's virtual ip is 1270.0.1

coder_uzb left a reply on Can't Connect To MySQL Server On '127.0.0.1' (4)

@Tray2 Thank you for answer. But my local ip 127.0.0.1

coder_uzb started a new conversation Can't Connect To MySQL Server On '127.0.0.1' (4)

Hi guys. When I want to connect to database. I have the following error. Can't connect to MySQL server on '127.0.0.1' (4) on sequel pro. I re-install all (vagrant,homesteadt). How can I fix it?

15 Mar
1 year ago

coder_uzb left a reply on How To Check Google Recaptcha With Laravel And Vue.js

@rin4ik thank you man you are saved my time

coder_uzb started a new conversation How To Check Google Recaptcha With Laravel And Vue.js

this is my vue component ``

{{ errors['g-recaptcha-response'][0] }} ``

How can I check recaptcha in laravel controller

27 Feb
1 year ago

coder_uzb left a reply on Multiple Language, Where To Start?

In your blade.

<ul class="dropdown-menu">
    <li>
        <a href="/lang/en/">English</a>
    </li>
    <li>
    <a href="/lang/es/">Spanish</a>
    </li>
</ul>

and in your routes.php or web.php

Route::get('/lang/{locale}', function ($locale) {
    if (!in_array($locale, Config::get('app.locales')))
    {
        $locale = 'en';
    }
    
    Cookie::queue('locale', $locale);
    return Redirect::to('/');

});

coder_uzb left a reply on Laravel Display All Avatars Associated With User

@foreach ($users as $user)

    <h2>{{ $user->name }}</h2>
    <img src="/uploads/avatars/{{ $user->avater }}"/>

@endforeach

coder_uzb left a reply on How Can I Use Flash Message After Axios Post?

I use sweetalert in vue. This is very good plugin

30 Oct
1 year ago

coder_uzb left a reply on How Can I CONCATENATE.

I need in vue component

coder_uzb left a reply on How Can I CONCATENATE.

not strings with data from database.

coder_uzb left a reply on How Can I CONCATENATE.

any idea?

coder_uzb started a new conversation How Can I CONCATENATE.

Hi guys. I need concatenate two data.For example. <a>{{ product.name_locale }} </a> export default { data(){ return { favorites:[], pagination:{}, offset:4, lang: en, } }, } How Can I concatenate after name_ lang data

coder_uzb started a new conversation How Can Pass Php Variable To Vue Component

Hi guys. How Can I pass current locale variable from laravel blade to vue component.

04 Oct
1 year ago

coder_uzb started a new conversation Save Old Data After Refresh Page With Ajax

HI guys. I have select box and I use on change method with ajax. This is my select box

<select class="select js-delivery" name="delivery_id">
                                    <option selected disabled>Choose delivery type</option>
                                    @foreach($deliveries as $delivery)
                                        <option value="{{$delivery->id}}">{{ $delivery->title }}</option>
                                    @endforeach
                                </select>

and here my ajax.

$(document).on('change', '.js-delivery', function(e){
            delivery.show();
            var delivery_id = $(this).val();            
                $.ajax({
                    type:'GET',
                    url:'get/delivery', 
                    data: {'id':delivery_id},
                    success:function(data){

                    var type = $('.delivery-type');
           type.html(data.title);   
                    },
                    error:function(data){
                        console.log('error');
                    }      
                });
        });

After this I submitted form and page refreshed. But when I was laravel errors I am losing select box value. How can I save old data?

26 Sep
1 year ago

coder_uzb left a reply on Composer Install Error

Thanks man. This is very helpful.

coder_uzb left a reply on Composer Install Error

My OS ubuntu 14.04 and I use LAMP

coder_uzb left a reply on Composer Install Error

I installed all of needs, but does not working

coder_uzb started a new conversation Composer Install Error

I installed mbstring,curl... and so on.. but i have the following error.What should I do?

 Problem 1
    - Installation request for teamtnt/tntsearch v1.0.7 -> satisfiable by teamtnt/tntsearch[v1.0.7].
    - teamtnt/tntsearch v1.0.7 requires ext-pdo_sqlite * -> the requested PHP extension pdo_sqlite is missing from your system.
  Problem 2
    - teamtnt/tntsearch v1.0.7 requires ext-pdo_sqlite * -> the requested PHP extension pdo_sqlite is missing from your system.
    - teamtnt/laravel-scout-tntsearch-driver v3.0.4 requires teamtnt/tntsearch 1.0.* -> satisfiable by teamtnt/tntsearch[v1.0.7].
    - Installation request for teamtnt/laravel-scout-tntsearch-driver v3.0.4 -> satisfiable by teamtnt/laravel-scout-tntsearch-driver[v3.0.4].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/7.1/cli/php.ini
    - /etc/php/7.1/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.1/cli/conf.d/10-opcache.ini
    - /etc/php/7.1/cli/conf.d/10-pdo.ini
    - /etc/php/7.1/cli/conf.d/15-xml.ini
    - /etc/php/7.1/cli/conf.d/20-bz2.ini
    - /etc/php/7.1/cli/conf.d/20-calendar.ini
    - /etc/php/7.1/cli/conf.d/20-ctype.ini
    - /etc/php/7.1/cli/conf.d/20-curl.ini
    - /etc/php/7.1/cli/conf.d/20-dom.ini
    - /etc/php/7.1/cli/conf.d/20-exif.ini
    - /etc/php/7.1/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.1/cli/conf.d/20-ftp.ini
    - /etc/php/7.1/cli/conf.d/20-gd.ini
    - /etc/php/7.1/cli/conf.d/20-gettext.ini
    - /etc/php/7.1/cli/conf.d/20-iconv.ini
    - /etc/php/7.1/cli/conf.d/20-igbinary.ini
    - /etc/php/7.1/cli/conf.d/20-intl.ini
    - /etc/php/7.1/cli/conf.d/20-json.ini
    - /etc/php/7.1/cli/conf.d/20-mbstring.ini
    - /etc/php/7.1/cli/conf.d/20-mcrypt.ini
    - /etc/php/7.1/cli/conf.d/20-msgpack.ini
    - /etc/php/7.1/cli/conf.d/20-mysqli.ini
    - /etc/php/7.1/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.1/cli/conf.d/20-phar.ini
    - /etc/php/7.1/cli/conf.d/20-posix.ini
    - /etc/php/7.1/cli/conf.d/20-readline.ini
    - /etc/php/7.1/cli/conf.d/20-redis.ini
    - /etc/php/7.1/cli/conf.d/20-shmop.ini
    - /etc/php/7.1/cli/conf.d/20-simplexml.ini
    - /etc/php/7.1/cli/conf.d/20-sockets.ini
    - /etc/php/7.1/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.1/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.1/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.1/cli/conf.d/20-tidy.ini
    - /etc/php/7.1/cli/conf.d/20-tokenizer.ini
    - /etc/php/7.1/cli/conf.d/20-wddx.ini
    - /etc/php/7.1/cli/conf.d/20-xmlreader.ini
    - /etc/php/7.1/cli/conf.d/20-xmlwriter.ini
    - /etc/php/7.1/cli/conf.d/20-xsl.ini
    - /etc/php/7.1/cli/conf.d/25-memcached.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

```

18 Sep
1 year ago
14 Sep
1 year ago

coder_uzb started a new conversation How Can I Set Datepicker Value When I Changed Date?

Hi guys. I have form about one person, and I use in component datepicker plugin.When I change date value my field does not update. My code.

 <input type="text"  name="birthdate" v-model="form.birthdate" id="js-personal-datepicker" class="input rounded personal__input personal__input--date">
export default {
        data() {
            return {
                form: {},
                errors: {}
            }
        },

    mounted(){
            this.getProfileData()
            this.$nextTick(function(){
                // $("#js-personal-datepicker").mask("99/99/9999", {autoclear: false});
                $('input[name=birthdate]').datepicker();
            })
        },

    methods: {
            getProfileData() {
                var _ = this
                axios.get('/profile')
                    .then(function(response) {
                        _.$set(_.$data, 'form', response.data.form)
                        console.log(response)
                    })
            },
    }

coder_uzb left a reply on Cannot Get And Set Datepicker In Input Field With V-model

I already require('jquery'). My datepicker also working perfect but when I clicked save button my date field changed to empty

coder_uzb left a reply on Cannot Get And Set Datepicker In Input Field With V-model

thanks for reply guys!

<input type="text" name="birthdate" v-model="form.birthdate" id="js-personal-datepicker" class="input rounded personal__input personal__input--date">
                                    <i class="icon-calendar personal__icondate"></i>
mounted() {
            this.$nextTick(function(){
                $("#js-personal-datepicker").mask("99/99/9999", {autoclear: false});
                $(this.$el).find("#js-personal-datepicker").datepicker();
            })
        },

My problem is when I change date and clicked save button my date field returned empty and when I change other fields also my date cannot changed.

coder_uzb left a reply on Cannot Get And Set Datepicker In Input Field With V-model

Hi thanks for reply.this is my code

<input type="text" name="birthdate" v-model="form.birthdate" id="js-personal-datepicker" class="input rounded personal__input personal__input--date">
                                    <i class="icon-calendar personal__icondate"></i>

and here I mounted datepicker

mounted() {
            this.$nextTick(function(){
                $("#js-personal-datepicker").mask("99/99/9999", {autoclear: false});
                $(this.$el).find("#js-personal-datepicker").datepicker();
            })
        },

My problem is when I change date and clicked save button my date field returned empty and when I change other fields also my date cannot changed.

coder_uzb left a reply on Cannot Get And Set Datepicker In Input Field With V-model

hi thank for reply.

<select id="mounth" v-model="form.region_id" class="input rounded full-width select">
                                    <option v-for="region in select.regions" :value="region.id">
                                    {{region.name_ru}}
                                    </option>
                                </select>
export default {
        data() {
            return {
                form: {},
                errors: {},
                select:{
                    regions:[]  
                },
                getForm: '/address/form'
            }
        },
}
13 Sep
1 year ago

coder_uzb started a new conversation Cannot Get And Set Datepicker In Input Field With V-model

Hi, when I change date with datepicker plugin my field returned is empty

11 Sep
1 year ago

coder_uzb started a new conversation Greggilbert/recaptcha Package Not Working

I use greggilbert/recaptcha and earlier I used than worked perfectly, but now I have the following error on console

recaptcha__en.js:370 Uncaught Error: ReCAPTCHA placeholder element must be empty
    at pr (recaptcha__en.js:370)
    at recaptcha__en.js:375
    at br (recaptcha__en.js:365)
    at recaptcha__en.js:374
    at recaptcha__en.js:385

any idea?

coder_uzb left a reply on Data Is Not Showing In Edit Form.

please show here just some code with controller function and edit.blade.php

coder_uzb left a reply on Can't Migrate In Digital Ocean

   'host' => env('DB_HOST', '127.0.0.1'),

please change 127.0.0.1 to localhost

09 Sep
1 year ago

coder_uzb left a reply on Call Init In Vue Component?

thanks for reply, please can you explain with my code,sorry I am new to Vue.

coder_uzb started a new conversation Call Init In Vue Component?

Hi. I have main.js

var RATEYO = {
        selector: $('.rateYo'),
        init:function(){
            this.selector.rateYo({
                rating: 2,
                fullStar: true,
                ratedFill: '#CA0828',
                starWidth: '16px',
                readOnly: true
            });
            var normalFill = this.selector.rateYo("option", "fullStar"); //returns true
        // Setter
            this.selector.rateYo("option", "fullStar", true); //returns a jQuery Element    
        }
    }   
        
    RATEYO.init();

My question how can I call or use RATEYO.init() in vue component when I change router-link?

08 Sep
1 year ago

coder_uzb left a reply on Why Auth::user() Return Null From Controller Method ?

Yeah you should just change middleware auth instead of web

coder_uzb left a reply on Why Auth::user() Return Null From Controller Method ?

Why you wrote everywhere

MyNamespace

this is folder of your app?