gidaban79

gidaban79

Member Since 2 Years Ago

leeds

Experience Points 8,140
Experience Level 2

1,860 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 56
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

13 Jul
1 week ago

gidaban79 left a reply on Where To Fire Event

Okay problem solved :)

gidaban79 started a new conversation Where To Fire Event

Hello guys,

i want to fire event if user don't choose account type. I already make Event and listener however i want to fire in every action in controller, is any option to do it? or just copy in every action?

26 Jun
3 weeks ago

gidaban79 left a reply on Moment Package Add Some Javascript In My Css File

Maybe somebody need it also

in app.js file i add line:

window.moment = require('moment');

And working well :)

gidaban79 commented on Instant Username Autocompletion: Part 2

Hello guys, i am stuck here with at.js files are already imported

 import 'jquery.caret';
 import 'at.js';

next

       mounted() {
            $('#body').atwho({
                at: "@",
                delay: 750,
                callbacks: {
                    remoteFilter: function(query, callback) {
                        $.getJSON("/api/users", {name: query}, function(usernames) {
                            callback(usernames)
                        });
                    }
                }
            });
        },

and i am getting error in my console

Error in mounted hook: "TypeError: $(...).atwho is not a function"
20 Jun
1 month ago

gidaban79 left a reply on Moment Package Add Some Javascript In My Css File

webpack.mix.js

let mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js');
mix.setPublicPath('public')
    .sass('resources/scss/adminlte/AdminLTE.scss','assets/adminlte/dist/css/')
    .sass('resources/scss/purpose.scss', 'assets/css')
    .combine([
        'resources/js/purpose/libs/jquery/dist/jquery.min.js',
        'resources/js/purpose/libs/bootstrap/dist/js/bootstrap.bundle.min.js',
        'resource/js/purpose/libs/@fontawesome/fontawesome-free/js/all.min.js',
        'resources/js/purpose/libs/in-view/dist/in-view.min.js',
        'resources/js/purpose/libs/sticky-kit/dist/sticky-kit.min.js',
        'resources/js/purpose/libs/svg-injector/dist/svg-injector.min.js',
        'resources/js/purpose/libs/jquery.scrollbar/jquery.scrollbar.min.js',
        'resources/js/purpose/libs/jquery-scroll-lock/dist/jquery-scrollLock.min.js',
        'resources/js/purpose/libs/imagesloaded/imagesloaded.pkgd.min.js',
        'resources/js/purpose/libs/@fancyapps/fancybox/dist/jquery.fancybox.min.js',
        'resources/js/purpose/libs/select2/dist/js/select2.min.js',
    ], 'public/assets/js/layout.core.js')
    .combine([
        'resources/js/purpose/license.js',
        'resources/js/purpose/layout.js',
        'resources/js/purpose/init/*.js',
        'resources/js/purpose/custom/*.js',
        'resources/js/purpose/maps/*.js',
        'resources/js/purpose/libs/*.js',
        'resources/js/purpose/charts/*.js'

    ], 'public/assets/js/layout.js');


// Options

mix.options({
    processCssUrls: false
});

and i am including moment in one of my vue component

import moment from 'moment'

gidaban79 started a new conversation Moment Package Add Some Javascript In My Css File

Hello guys

"moment": "^2.24.0", "vue": "^2.6.10", "laravel-mix": "^4.0.16",

I have strange problem, when i am run command npm run dev everything is mixed, however in my css file is part of js file from moment lib.

    "./af": "./node_modules/moment/locale/af.js",
    "./af.js": "./node_modules/moment/locale/af.js",
    "./ar": "./node_modules/moment/locale/ar.js",
    "./ar-dz": "./node_modules/moment/locale/ar-dz.js",
    "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
    "./ar-kw": "./node_modules/moment/locale/ar-kw.js",
    "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
    "./ar-ly": "./node_modules/moment/locale/ar-ly.js",
    "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
    "./ar-ma": "./node_modules/moment/locale/ar-ma.js",
    "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
    "./ar-sa": "./node_modules/moment/locale/ar-sa.js",
    "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
    "./ar-tn": "./node_modules/moment/locale/ar-tn.js",
    "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
    "./ar.js": "./node_modules/moment/locale/ar.js",
    "./az": "./node_modules/moment/locale/az.js",
    "./az.js": "./node_modules/moment/locale/az.js",
    "./be": "./node_modules/moment/locale/be.js",
    "./be.js": "./node_modules/moment/locale/be.js",
    "./bg": "./node_modules/moment/locale/bg.js",
    "./bg.js": "./node_modules/moment/locale/bg.js",
    "./bm": "./node_modules/moment/locale/bm.js",
    "./bm.js": "./node_modules/moment/locale/bm.js",
    "./bn": "./node_modules/moment/locale/bn.js",
    "./bn.js": "./node_modules/moment/locale/bn.js",
    "./bo": "./node_modules/moment/locale/bo.js",
    "./bo.js": "./node_modules/moment/locale/bo.js",
    "./br": "./node_modules/moment/locale/br.js",
    "./br.js": "./node_modules/moment/locale/br.js",
    "./bs": "./node_modules/moment/locale/bs.js",
    "./bs.js": "./node_modules/moment/locale/bs.js",
    "./ca": "./node_modules/moment/locale/ca.js",
    "./ca.js": "./node_modules/moment/locale/ca.js",
    "./cs": "./node_modules/moment/locale/cs.js",
    "./cs.js": "./node_modules/moment/locale/cs.js",
    "./cv": "./node_modules/moment/locale/cv.js",
    "./cv.js": "./node_modules/moment/locale/cv.js",
    "./cy": "./node_modules/moment/locale/cy.js",
    "./cy.js": "./node_modules/moment/locale/cy.js",
    "./da": "./node_modules/moment/locale/da.js",
    "./da.js": "./node_modules/moment/locale/da.js",
    "./de": "./node_modules/moment/locale/de.js",
    "./de-at": "./node_modules/moment/locale/de-at.js",
    "./de-at.js": "./node_modules/moment/locale/de-at.js",
    "./de-ch": "./node_modules/moment/locale/de-ch.js",
    "./de-ch.js": "./node_modules/moment/locale/de-ch.js",
    "./de.js": "./node_modules/moment/locale/de.js",
    "./dv": "./node_modules/moment/locale/dv.js",
    "./dv.js": "./node_modules/moment/locale/dv.js",
    "./el": "./node_modules/moment/locale/el.js",
    "./el.js": "./node_modules/moment/locale/el.js",
    "./en-SG": "./node_modules/moment/locale/en-SG.js",
    "./en-SG.js": "./node_modules/moment/locale/en-SG.js",
    "./en-au": "./node_modules/moment/locale/en-au.js",
    "./en-au.js": "./node_modules/moment/locale/en-au.js",
    "./en-ca": "./node_modules/moment/locale/en-ca.js",
    "./en-ca.js": "./node_modules/moment/locale/en-ca.js",
    "./en-gb": "./node_modules/moment/locale/en-gb.js",
    "./en-gb.js": "./node_modules/moment/locale/en-gb.js",
    "./en-ie": "./node_modules/moment/locale/en-ie.js",
    "./en-ie.js": "./node_modules/moment/locale/en-ie.js",
    "./en-il": "./node_modules/moment/locale/en-il.js",
    "./en-il.js": "./node_modules/moment/locale/en-il.js",
    "./en-nz": "./node_modules/moment/locale/en-nz.js",
    "./en-nz.js": "./node_modules/moment/locale/en-nz.js",
    "./eo": "./node_modules/moment/locale/eo.js",
    "./eo.js": "./node_modules/moment/locale/eo.js",
    "./es": "./node_modules/moment/locale/es.js",
    "./es-do": "./node_modules/moment/locale/es-do.js",
    "./es-do.js": "./node_modules/moment/locale/es-do.js",
    "./es-us": "./node_modules/moment/locale/es-us.js",
    "./es-us.js": "./node_modules/moment/locale/es-us.js",
    "./es.js": "./node_modules/moment/locale/es.js",
    "./et": "./node_modules/moment/locale/et.js",
    "./et.js": "./node_modules/moment/locale/et.js",
    "./eu": "./node_modules/moment/locale/eu.js",
    "./eu.js": "./node_modules/moment/locale/eu.js",
    "./fa": "./node_modules/moment/locale/fa.js",
    "./fa.js": "./node_modules/moment/locale/fa.js",
    "./fi": "./node_modules/moment/locale/fi.js",
    "./fi.js": "./node_modules/moment/locale/fi.js",
    "./fo": "./node_modules/moment/locale/fo.js",
    "./fo.js": "./node_modules/moment/locale/fo.js",
    "./fr": "./node_modules/moment/locale/fr.js",
    "./fr-ca": "./node_modules/moment/locale/fr-ca.js",
    "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
    "./fr-ch": "./node_modules/moment/locale/fr-ch.js",
    "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
    "./fr.js": "./node_modules/moment/locale/fr.js",
    "./fy": "./node_modules/moment/locale/fy.js",
    "./fy.js": "./node_modules/moment/locale/fy.js",
    "./ga": "./node_modules/moment/locale/ga.js",
    "./ga.js": "./node_modules/moment/locale/ga.js",
    "./gd": "./node_modules/moment/locale/gd.js",
    "./gd.js": "./node_modules/moment/locale/gd.js",
    "./gl": "./node_modules/moment/locale/gl.js",
    "./gl.js": "./node_modules/moment/locale/gl.js",
    "./gom-latn": "./node_modules/moment/locale/gom-latn.js",
    "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
    "./gu": "./node_modules/moment/locale/gu.js",
    "./gu.js": "./node_modules/moment/locale/gu.js",
    "./he": "./node_modules/moment/locale/he.js",
    "./he.js": "./node_modules/moment/locale/he.js",
    "./hi": "./node_modules/moment/locale/hi.js",
    "./hi.js": "./node_modules/moment/locale/hi.js",
    "./hr": "./node_modules/moment/locale/hr.js",
    "./hr.js": "./node_modules/moment/locale/hr.js",
    "./hu": "./node_modules/moment/locale/hu.js",
    "./hu.js": "./node_modules/moment/locale/hu.js",
    "./hy-am": "./node_modules/moment/locale/hy-am.js",
    "./hy-am.js": "./node_modules/moment/locale/hy-am.js",
    "./id": "./node_modules/moment/locale/id.js",
    "./id.js": "./node_modules/moment/locale/id.js",
    "./is": "./node_modules/moment/locale/is.js",
    "./is.js": "./node_modules/moment/locale/is.js",
    "./it": "./node_modules/moment/locale/it.js",
    "./it-ch": "./node_modules/moment/locale/it-ch.js",
    "./it-ch.js": "./node_modules/moment/locale/it-ch.js",
    "./it.js": "./node_modules/moment/locale/it.js",
    "./ja": "./node_modules/moment/locale/ja.js",
    "./ja.js": "./node_modules/moment/locale/ja.js",
    "./jv": "./node_modules/moment/locale/jv.js",
    "./jv.js": "./node_modules/moment/locale/jv.js",
    "./ka": "./node_modules/moment/locale/ka.js",
    "./ka.js": "./node_modules/moment/locale/ka.js",
    "./kk": "./node_modules/moment/locale/kk.js",
    "./kk.js": "./node_modules/moment/locale/kk.js",
    "./km": "./node_modules/moment/locale/km.js",
    "./km.js": "./node_modules/moment/locale/km.js",
    "./kn": "./node_modules/moment/locale/kn.js",
    "./kn.js": "./node_modules/moment/locale/kn.js",
    "./ko": "./node_modules/moment/locale/ko.js",
    "./ko.js": "./node_modules/moment/locale/ko.js",
    "./ku": "./node_modules/moment/locale/ku.js",
    "./ku.js": "./node_modules/moment/locale/ku.js",
    "./ky": "./node_modules/moment/locale/ky.js",
    "./ky.js": "./node_modules/moment/locale/ky.js",
    "./lb": "./node_modules/moment/locale/lb.js",
    "./lb.js": "./node_modules/moment/locale/lb.js",
    "./lo": "./node_modules/moment/locale/lo.js",
    "./lo.js": "./node_modules/moment/locale/lo.js",
    "./lt": "./node_modules/moment/locale/lt.js",
    "./lt.js": "./node_modules/moment/locale/lt.js",
    "./lv": "./node_modules/moment/locale/lv.js",
    "./lv.js": "./node_modules/moment/locale/lv.js",
    "./me": "./node_modules/moment/locale/me.js",
    "./me.js": "./node_modules/moment/locale/me.js",
    "./mi": "./node_modules/moment/locale/mi.js",
    "./mi.js": "./node_modules/moment/locale/mi.js",
    "./mk": "./node_modules/moment/locale/mk.js",
    "./mk.js": "./node_modules/moment/locale/mk.js",
    "./ml": "./node_modules/moment/locale/ml.js",
    "./ml.js": "./node_modules/moment/locale/ml.js",
    "./mn": "./node_modules/moment/locale/mn.js",
    "./mn.js": "./node_modules/moment/locale/mn.js",
    "./mr": "./node_modules/moment/locale/mr.js",
    "./mr.js": "./node_modules/moment/locale/mr.js",
    "./ms": "./node_modules/moment/locale/ms.js",
    "./ms-my": "./node_modules/moment/locale/ms-my.js",
    "./ms-my.js": "./node_modules/moment/locale/ms-my.js",
    "./ms.js": "./node_modules/moment/locale/ms.js",
    "./mt": "./node_modules/moment/locale/mt.js",
    "./mt.js": "./node_modules/moment/locale/mt.js",
    "./my": "./node_modules/moment/locale/my.js",
    "./my.js": "./node_modules/moment/locale/my.js",
    "./nb": "./node_modules/moment/locale/nb.js",
    "./nb.js": "./node_modules/moment/locale/nb.js",
    "./ne": "./node_modules/moment/locale/ne.js",
    "./ne.js": "./node_modules/moment/locale/ne.js",
    "./nl": "./node_modules/moment/locale/nl.js",
    "./nl-be": "./node_modules/moment/locale/nl-be.js",
    "./nl-be.js": "./node_modules/moment/locale/nl-be.js",
    "./nl.js": "./node_modules/moment/locale/nl.js",
    "./nn": "./node_modules/moment/locale/nn.js",
    "./nn.js": "./node_modules/moment/locale/nn.js",
    "./pa-in": "./node_modules/moment/locale/pa-in.js",
    "./pa-in.js": "./node_modules/moment/locale/pa-in.js",
    "./pl": "./node_modules/moment/locale/pl.js",
    "./pl.js": "./node_modules/moment/locale/pl.js",
    "./pt": "./node_modules/moment/locale/pt.js",
    "./pt-br": "./node_modules/moment/locale/pt-br.js",
    "./pt-br.js": "./node_modules/moment/locale/pt-br.js",
    "./pt.js": "./node_modules/moment/locale/pt.js",
    "./ro": "./node_modules/moment/locale/ro.js",
    "./ro.js": "./node_modules/moment/locale/ro.js",
    "./ru": "./node_modules/moment/locale/ru.js",
    "./ru.js": "./node_modules/moment/locale/ru.js",
    "./sd": "./node_modules/moment/locale/sd.js",
    "./sd.js": "./node_modules/moment/locale/sd.js",
    "./se": "./node_modules/moment/locale/se.js",
    "./se.js": "./node_modules/moment/locale/se.js",
    "./si": "./node_modules/moment/locale/si.js",
    "./si.js": "./node_modules/moment/locale/si.js",
    "./sk": "./node_modules/moment/locale/sk.js",
    "./sk.js": "./node_modules/moment/locale/sk.js",
    "./sl": "./node_modules/moment/locale/sl.js",
    "./sl.js": "./node_modules/moment/locale/sl.js",
    "./sq": "./node_modules/moment/locale/sq.js",
    "./sq.js": "./node_modules/moment/locale/sq.js",
    "./sr": "./node_modules/moment/locale/sr.js",
    "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
    "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
    "./sr.js": "./node_modules/moment/locale/sr.js",
    "./ss": "./node_modules/moment/locale/ss.js",
    "./ss.js": "./node_modules/moment/locale/ss.js",
    "./sv": "./node_modules/moment/locale/sv.js",
    "./sv.js": "./node_modules/moment/locale/sv.js",
    "./sw": "./node_modules/moment/locale/sw.js",
    "./sw.js": "./node_modules/moment/locale/sw.js",
    "./ta": "./node_modules/moment/locale/ta.js",
    "./ta.js": "./node_modules/moment/locale/ta.js",
    "./te": "./node_modules/moment/locale/te.js",
    "./te.js": "./node_modules/moment/locale/te.js",
    "./tet": "./node_modules/moment/locale/tet.js",
    "./tet.js": "./node_modules/moment/locale/tet.js",
    "./tg": "./node_modules/moment/locale/tg.js",
    "./tg.js": "./node_modules/moment/locale/tg.js",
    "./th": "./node_modules/moment/locale/th.js",
    "./th.js": "./node_modules/moment/locale/th.js",
    "./tl-ph": "./node_modules/moment/locale/tl-ph.js",
    "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
    "./tlh": "./node_modules/moment/locale/tlh.js",
    "./tlh.js": "./node_modules/moment/locale/tlh.js",
    "./tr": "./node_modules/moment/locale/tr.js",
    "./tr.js": "./node_modules/moment/locale/tr.js",
    "./tzl": "./node_modules/moment/locale/tzl.js",
    "./tzl.js": "./node_modules/moment/locale/tzl.js",
    "./tzm": "./node_modules/moment/locale/tzm.js",
    "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
    "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
    "./tzm.js": "./node_modules/moment/locale/tzm.js",
    "./ug-cn": "./node_modules/moment/locale/ug-cn.js",
    "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
    "./uk": "./node_modules/moment/locale/uk.js",
    "./uk.js": "./node_modules/moment/locale/uk.js",
    "./ur": "./node_modules/moment/locale/ur.js",
    "./ur.js": "./node_modules/moment/locale/ur.js",
    "./uz": "./node_modules/moment/locale/uz.js",
    "./uz-latn": "./node_modules/moment/locale/uz-latn.js",
    "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
    "./uz.js": "./node_modules/moment/locale/uz.js",
    "./vi": "./node_modules/moment/locale/vi.js",
    "./vi.js": "./node_modules/moment/locale/vi.js",
    "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
    "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
    "./yo": "./node_modules/moment/locale/yo.js",
    "./yo.js": "./node_modules/moment/locale/yo.js",
    "./zh-cn": "./node_modules/moment/locale/zh-cn.js",
    "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
    "./zh-hk": "./node_modules/moment/locale/zh-hk.js",
    "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
    "./zh-tw": "./node_modules/moment/locale/zh-tw.js",
    "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
};


function webpackContext(req) {
    var id = webpackContextResolve(req);
    return __webpack_require__(id);
}
function webpackContextResolve(req) {
    if(!__webpack_require__.o(map, req)) {
        var e = new Error("Cannot find module '" + req + "'");
        e.code = 'MODULE_NOT_FOUND';
        throw e;
    }
    return map[req];
}
webpackContext.keys = function webpackContextKeys() {
    return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = "./node_modules/moment/locale sync recursive ^\.\/.*$";```
10 Apr
3 months ago

gidaban79 left a reply on Remove Error Message After Open Second Time Of Modal

Yes, however error message

msg.html(data.responseJSON.errors.name[0]);

is returned from response, if i will close modal and open again message is still showed.

gidaban79 started a new conversation Remove Error Message After Open Second Time Of Modal

Hello guys,

i am trying to do validation of adding some value to database in modal.

So far validation working well, However when user will press close modal and will open again previously message still is showed.

js script

$('.saveService').on('click', function () {
                    let msg = $('#msg');
                    $.ajax({
                        type: 'PUT',
                        url: '{{route('business.services.store')}}',
                        data: {
                            name: $('#service').val()
                        }, error: function (data) {
                            msg.html(data.responseJSON.errors.name[0]);
                        },
                        success: function (data) {
                            console.log(data);
                        }
                    })
                }
            );

and modal

<div class="modal fade" id="services" tabindex="-1" role="dialog" aria-labelledby="servicesLabel"
         aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="servicesLabel">Add New Service</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    {{Form::open()}}
                    <div class="row">
                        <div class="col-md-12">
                            {{Form::label('service','Service',['class' => 'form-control-label'])}}
                            {{Form::text('service',null,['class'=>'form-control'])}}
                            <div id="msg"></div>
                        </div>
                    </div>
                    {{Form::close()}}
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning btn-sm" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-success btn-sm saveService">Save changes</button>
                </div>
            </div>
        </div>
    </div>
16 Mar
4 months ago

gidaban79 left a reply on Tracking Visitors Of Specific Url

I want to show statistic for my business customers, for example how many visit they had, today, yesterday, last week and etc, one specific user.

14 Mar
4 months ago

gidaban79 started a new conversation Tracking Visitors Of Specific Url

Hello guys, i am looking for some package of tracking users which visit specific url on my website, it will be statistic for business customers,ex how many clicks today, last week, last month, I don`t mind analystic by google

03 Mar
4 months ago

gidaban79 left a reply on JQuery - Disable A Text Field In Form

Okay problem solved :) thanks i just add 'data-field' attribute and working well thanks again :)

gidaban79 left a reply on JQuery - Disable A Text Field In Form

Sorry for refreshing it is work, however my checkbox is also disabled and i can`t click for uncheck

gidaban79 left a reply on JQuery - Disable A Text Field In Form

@CRONIX - thanks for advice :)

02 Mar
4 months ago

gidaban79 started a new conversation JQuery - Disable A Text Field In Form

Hello guys,

i want to make form with opening hours, but customer can click on checkbox and in this day will be closed also text filed should be disabled,

html:

                 <div class="row">
                        <div class="col-md-6">
                            {!! Form::label('monday', 'Monday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="monday" name="monday" type="checkbox">
                                <label class="custom-control-label" for="monday">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('monday',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}
                            {!! Form::label('tuesday', 'Tuesday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="tuesday" name="tuesday"
                                       type="checkbox">
                                <label class="custom-control-label" for="tuesday">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('tuesday',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}
                            {!! Form::label('wednesday', 'Wednesday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="wednesday" name="wednesday"
                                       type="checkbox">
                                <label class="custom-control-label" for="wednesday">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('wednesday',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}
                            {!! Form::label('thursday', 'Thursday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="thursday" name="thursday"
                                       type="checkbox">
                                <label class="custom-control-label" for="thursday">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('thursday',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}
                            {!! Form::label('friday', 'Friday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="friday" name="friday" type="checkbox">
                                <label class="custom-control-label" for="friday">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('friday',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}

                        </div>
                        <div class="col-md-6">
                            {!! Form::label('saturday', 'Saturday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="saturday" name="saturday"
                                       type="checkbox">
                                <label class="custom-control-label" for="saturday">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('saturday',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}
                            {!! Form::label('sunday', 'Sunday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="sunday" name="sunday" type="checkbox">
                                <label class="custom-control-label" for="sunday">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('sunday',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}
                            {!! Form::label('bank', 'Bank Holiday', ['class' => 'control-label']) !!}
                            <div class="custom-control custom-checkbox pull-right">
                                <input class="custom-control-input is_close" id="bank" name="bank" type="checkbox">
                                <label class="custom-control-label" for="bank">
                                    <span>Close ?</span>
                                </label>
                            </div>
                            {!! Form::text('bank',null, ['class' => 'form-control input-mask','data-mask'=>'00-00','placeholder'=>'8-18']) !!}

                        </div>
                    </div>

I am use laravel collective, for generate forms,

js:

            $('input:checkbox.is_close').on('click', function () {
                let click = this.id;
                if ($('input:checkbox.is_close').is(':checked')) {
                   
                } else {
                   
                }

            });

in click variable is name of day, which should disable proper text field;

25 Feb
4 months ago

gidaban79 left a reply on Where Are You All From?

Leeds UK here :)

24 Feb
4 months ago

gidaban79 left a reply on Best Way For Store Data In Database?

sorry formatting :)

i want to use polymorphic relationships to assign branch to companies.

then something like that user->profile->company->branches()

one company have a many branches, should be a morphToMany ?

gidaban79 left a reply on Best Way For Store Data In Database?

Sorry for refreshing subject

@snapey yeah your solution is best, however is possible to make more levels relationship ?

example: -user --Customer --Company ---Branch ?

19 Feb
5 months ago

gidaban79 left a reply on Best Way For Store Data In Database?

Okay i have one more question about polymorphic relationships.

In my case one specific company type can have more like one branch then it should add more like one record,

then will be morphToMany ? but how allow it ?

for example if company is as retailer ?

gidaban79 left a reply on Best Way For Store Data In Database?

@snapey your idea looking interesting, then basically separate data for customers and companies,

18 Feb
5 months ago

gidaban79 left a reply on Best Way For Store Data In Database?

Yes i use laratrust for roles and it working well,

for example customers don`t have to fill fields like VAT number or website.

Some data re similar like localization.

gidaban79 started a new conversation Best Way For Store Data In Database?

Hello Guys, i am working now on one website where users - customers have to fill some data, but when account is other type ex installer i need to fill them other data.

And now my question,

Keep it all users in one table? even they have to fill different data?

Make a another table for store non customers data?

07 Feb
5 months ago
03 Feb
5 months ago

gidaban79 left a reply on How To Show Message After Verify Email ?

How about something more dynamically?

Session::flash ? is possible to do ?

gidaban79 started a new conversation How To Show Message After Verify Email ?

Hello guys :)

i wish to display message when user will click on link in verification email,

After click, redirect on website and show message "Thanks" :)

02 Feb
5 months ago

gidaban79 started a new conversation Redirect After Login User If Don`t Fill Some Data ?

Hello guys, i want to make in my app redirect to specific URL if user don't fill some data in his/her profile.

Somebody tried something like that ?

27 Jan
5 months ago

gidaban79 started a new conversation Vue And Rating System

Hello guys in beautiful Sunday:)

let start from code :)

my vue component:

<template>
    <div class="container px-0 mt-4">
        <div class="row align-items-center">
            <div id="review" class="col-12 card mt-4 pt-3">
                <div class="row">
                    <div class="col-12">
                        <div class="col-7 mb-3"><span><strong>Reviews</strong></span></div>
                        <a class="small mr-3 ml-3">Sort by</a>
                        <!-- Small dropdown -->
                        <div class="dropdown">
                            <button class="btn btn-sm btn-outline-primary dropdown-toggle" type="button"
                                    data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Newest first
                            </button>
                            <div class="dropdown-menu dropdown-menu-sm" aria-labelledby="dropdown_small"><a
                                    class="dropdown-item" href="#">Oldest first</a> <a class="dropdown-item" href="#">Rating
                                (High to low)</a> <a class="dropdown-item" href="#">Rating (Low to high)</a></div>
                        </div>
                        <!--Paginate-->
                        <nav aria-label="Page navigation example">
                            <ul class="pagination justify-content-center">
                                <li v-bind:class="[{disabled: !pagination.prev_page_url}]" class="page-item"><a
                                        @click.prevent="fetchReviews(pagination.prev_page_url)" class="page-link"
                                        href="">Previous</a></li>
                                <li class="page-item disabled"><a href="#" class="page-link text-dark">Page {{
                                    pagination.current_page}}
                                    of {{ pagination.last_page}}</a></li>
                                <li v-bind:class="[{disabled: !pagination.next_page_url}]" class="page-item"><a
                                        @click.prevent="fetchReviews(pagination.next_page_url)" class="page-link"
                                        href="">Next</a></li>
                            </ul>
                        </nav>
                        <!--Paginate-->
                        <!--loop-->
                        <div class="media mt-4 ml-3" v-for="review in reviews" v-bind:key="review.id">
                            <img class="mr-3 rounded" src="https://lorempixel.com/64/64/people/?81158"
                                 alt="reviewers-image">
                            <div class="media-body">
                                <h6 class="mt-0">{{review.first_name}} {{review.last_name}}</h6>
                                <div class="small">{{review.created_at}}</div>
                                <div class="small">{{review.body}}</div>
                            </div>
                        </div>
                        <!--loop-->
                        <!-- Review section START-->
                        <div class="container px-0 mt-4">
                            <div class="row align-items-center">
                                <div class="col-12 mt-4 pt-3 mr-0" style="background-color: #f8f8f8;">
                                    <div class="row">
                                        <div class="col-4 ml-3"><span><strong>Write your review</strong></span></div>
                                        <div class="col pr-4 pb-3 text-right"><a class="" data-toggle="collapse"
                                                                                 href="#collapseReview"
                                                                                 aria-expanded="false"
                                                                                 aria-controls="collapseReview"><i
                                                class="fas fa-caret-down"></i></a></div>
                                        <div class="collapse col-12" data-toggle="false" id="collapseReview">
                                            <!-- star rating -->
                                            <div class="col-6 star-rating">
                                                <div class="row">
                                                    <div class="rating mb-3">

                                                    </div>
                                                </div>
                                            </div>
                                            <!--star rating end -->

                                            <form @submit.prevent="saveReview">
                                                <div class="col-6">
                                                    <div class="form-group">
                                                        <input type="text" name="title" id="title"
                                                               v-model="review.title"
                                                               class="form-control form-control-sm"
                                                               placeholder="Title of your review">
                                                    </div>
                                                </div>
                                                <div class="offset-6"></div>
                                                <div class="col-9">
                                                    <div class="small mb-1"><i class="fas fa-info-circle mr-2"></i>Be
                                                        honest with your review, this will be made public.
                                                    </div>
                                                </div>
                                                <div class="col-12">
                                                    <div class="form-group">
                                                        <textarea class="form-control" name="body" id="body"
                                                                  v-model="review.body"
                                                                  placeholder="Your review - tell people about your experience"
                                                                  rows="3" resize="none"></textarea>
                                                    </div>
                                                </div>
                                                <div class="col-12 mb-3">
                                                    <input type="file" name="file-1[]" id="file"
                                                           class="custom-input-file"
                                                           data-multiple-caption="{count} files selected" multiple/>
                                                    <label for="file"> <em class="fa fa-upload"></em> <span>Choose a photo…</span>
                                                    </label>
                                                </div>
                                                <div class="row">
                                                    <div class="col ml-3"><span>Your details</span></div>
                                                </div>
                                                <div class="row">
                                                    <div class="col ml-3">
                                                        <div class="form-group">
                                                            <input type="text" id="first_name" name="first_name"
                                                                   v-model="review.first_name"
                                                                   class="form-control form-control-sm"
                                                                   placeholder="First name">
                                                        </div>
                                                    </div>
                                                    <div class="col mr-3">
                                                        <div class="form-group">
                                                            <input type="text" id="last_name" name="last_name"
                                                                   v-model="review.last_name"
                                                                   class="form-control form-control-sm"
                                                                   placeholder="Last name">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col ml-3 small">
                                                        <div class="mt-3">
                                                            <span>This email won't be shown publically</span><em
                                                                class="ml-3 fas fa-angle-right"></em></div>
                                                    </div>
                                                    <div class="col mr-3">
                                                        <div class="form-group">
                                                            <input type="text" id="email" name="email"
                                                                   v-model="review.email"
                                                                   class="form-control form-control-sm"
                                                                   placeholder="Email">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-12 text-center mt-2 mb-4">
                                                    <button type="submit"
                                                            class="btn btn-sm btn-primary mt-4 mt-sm-0 shadow"><i
                                                            class="fas fa-pen-alt mr-2"></i>Submit your review
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <!-- Review section END-->

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


</template>

<script>

    export default {
        props: ['companyId', 'csrfToken'],
        name: "Reviews",
        data() {
            return {
                reviews: [],
                login: false,
                review: {
                    first_name: '',
                    last_name: '',
                    email: '',
                    title: '',
                    rate: '',
                    photo: '',
                    body: '',
                    created_at: '',
                },
                review_id: '',
                pagination: {},
            }
        },
        created() {
            this.fetchReviews();
            this.randomNumber();
        },
        methods: {
            fetchReviews(page_url) {
                let vm = this;
                page_url = page_url || '/review/' + this.companyId;
                fetch(page_url)
                    .then(res => res.json()
                    )
                    .then(res => {
                        this.reviews = res.data;
                        vm.makePagination(res);
                    })
                    .catch(err => console.log(err)
                    );

            },
            saveReview() {
                fetch('/review/' + this.companyId, {
                    method: 'post',
                    headers: {
                        'X-CSRF-TOKEN': this.csrfToken,
                        'content-type': 'application/json'
                    },
                    body: JSON.stringify(this.review),
                }).then(res => res.json())
                    .then(data => {
                        this.review.first_name = '';
                        this.review.last_name = '';
                        this.review.email = '';
                        this.review.title = '';
                        this.review.rate = '';
                        this.review.photo = '';
                        this.review.body = '';
                        this.fetchReviews()
                    })
                    .catch(err => console.log(err));
            },

            makePagination(meta) {
                let pagination = {
                    current_page: meta.current_page,
                    last_page: meta.last_page,
                    next_page_url: meta.next_page_url,
                    prev_page_url: meta.prev_page_url,

                }
                this.pagination = pagination;
            },
            randomNumber: function () {
                this.random = Math.floor(Math.random() * (10 - 1 + 1)) + 1
            }
        }
    }
</script>

<style scoped>

</style>```

so far working well but i can`t pass/get data from rating system.
I am using : https://github.com/nashio/star-rating-svg

Voting system working but how pass data from rating system after voting to vue component and save results in DB?
20 Jan
6 months ago

gidaban79 started a new conversation Vue And Paginate

Hello guys, i am trying to make a paginate in my reviews system,

<script>
    var companyId = 1;
    export default {
        name: "Reviews",
        data() {
            return {
                reviews: [],
                login: false,
                review: {
                    id: '',
                    first_name: '',
                    last_name: '',
                    title: '',
                    rate: '',
                    photo: '',
                    body: '',
                    created_at: '',
                    company_id: '',
                },
                review_id: '',
                pagination: {},
            }
        },
        created() {
            this.fetchReviews();
            this.randomNumber();
        },
        methods:{
            fetchReviews(page_url) {
                let vm = this;
                page_url = page_url || '/review/'+companyId+'/';
                    fetch(page_url)
                        .then(res => res.json()
                        )
                        .then(res => {
                            this.reviews = res.data;
                            vm.makePagination(res);
                        })
                        .catch(err => console.log(err)
                        );

            },
            makePagination(meta) {
                let pagination = {
                    current_page: meta.current_page,
                    last_page: meta.last_page,
                    next_page_url: meta.next_page_url,
                    prev_page_url: meta.prev_page_url,

                }
                this.pagination = pagination;
            },
            randomNumber: function () {
                this.random = Math.floor(Math.random() * (10 - 1 + 1)) + 1
            }
        }
    }
</script>

for paginate i am using

                        <!--Paginate-->
                        <nav aria-label="Page navigation example">
                            <ul class="pagination justify-content-center">
                                <li v-bind:class="[{disabled: !pagination.prev_page_url}]" class="page-item"><a
                                        @click="fetchComments(pagination.prev_page_url)" class="page-link" href="#">Previous</a></li>
                                <li class="page-item disabled"><a href="#" class="page-link text-dark">Page {{ pagination.current_page}}
                                    of {{ pagination.last_page}}</a></li>
                                <li v-bind:class="[{disabled: !pagination.next_page_url}]" class="page-item"><a
                                        @click="fetchComments(pagination.next_page_url)" class="page-link" href="#">Next</a></li>
                            </ul>
                        </nav>
                        <!--Paginate-->

when i am click on next page in console i see it:

 Property or method "fetchComments" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
12 Jan
6 months ago

gidaban79 left a reply on Best Way For Exchange Data ?

@sergiu17

Yes that will be reviews - comments, part of application. Then that is all what i want to know thanks :)

gidaban79 started a new conversation Best Way For Exchange Data ?

Hello Guys :)

just wondering about best way for exchanging data (receive and send) between vue component and application ? use normal routes or like api?

02 Jan
6 months ago

gidaban79 left a reply on Featured Posts, Companies? Idea For Store?

@BENCARTER78 - Okay maybe i said something wrong, sorry.

But not always created_at will be equal with starting date. That why i have from and to fields.

01 Jan
6 months ago

gidaban79 left a reply on Font Awesome As Npm Package Any Suggestion ?

Problem solved :)

import {library, dom} from '@fortawesome/fontawesome-svg-core';
import {faCaretUp} from '@fortawesome/free-solid-svg-icons';
import {faCaretDown} from '@fortawesome/free-solid-svg-icons';
import {faStar} from '@fortawesome/free-solid-svg-icons';
import {faCheck} from '@fortawesome/free-solid-svg-icons';

library.add([faCaretDown, faCaretUp, faCheck, faStar]);

dom.watch();
{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "npm run development -- --watch",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    },
    "devDependencies": {
        "axios": "^0.18",
        "bootstrap": "^4.0.0",
        "cross-env": "^5.1",
        "jquery": "^3.2",
        "laravel-mix": "^4.0.7",
        "lodash": "^4.17.5",
        "popper.js": "^1.12",
        "resolve-url-loader": "^2.3.1",
        "sass": "^1.15.2",
        "sass-loader": "^7.1.0",
        "vue": "^2.5.17",
        "vue-template-compiler": "^2.5.21"
    },
    "dependencies": {
        "@fortawesome/fontawesome-free": "^5.6.3",
        "@fortawesome/fontawesome-svg-core": "^1.2.12",
        "@fortawesome/free-solid-svg-icons": "^5.6.3"
    }
}

gidaban79 started a new conversation Font Awesome As Npm Package Any Suggestion ?

Hello guys,

First Happy new Year :)

next :P

i have problem with import of font awesome as npm package;

import fontawesome from '@fortawesome/fontawesome-free';
import faCaretUp from '@fortawesome/free-solid-svg-icons/faCaretUp';
import faCaretDown from '@fortawesome/free-solid-svg-icons/faCaretDown';
import faStar from '@fortawesome/free-solid-svg-icons/faStar';
import faCheck from '@fortawesome/free-solid-svg-icons/faCheck';

fontawesome.library.add(faCaretUp,faCaretDown,faStar,faCheck);

and in console i get error

app.js:50294 Uncaught TypeError: Cannot read property 'add' of undefined
    at Module../resources/js/fontawesome.js (app.js:50294)
    at __webpack_require__ (app.js:20)
    at Object../resources/js/app.js (app.js:50117)
    at __webpack_require__ (app.js:20)
    at Object.0 (app.js:50316)
    at __webpack_require__ (app.js:20)
    at app.js:84
    at app.js:87

my package.json file

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "npm run development -- --watch",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    },
    "devDependencies": {
        "axios": "^0.18",
        "bootstrap": "^4.0.0",
        "cross-env": "^5.1",
        "jquery": "^3.2",
        "laravel-mix": "^4.0.7",
        "lodash": "^4.17.5",
        "popper.js": "^1.12",
        "resolve-url-loader": "^2.3.1",
        "sass": "^1.15.2",
        "sass-loader": "^7.1.0",
        "vue": "^2.5.17",
        "vue-template-compiler": "^2.5.21"
    },
    "dependencies": {
        "@fortawesome/fontawesome-free": "^5.6.3",
        "@fortawesome/free-solid-svg-icons": "^5.6.3"
    }
}
31 Dec
6 months ago

gidaban79 left a reply on Comment System In Vue And Laravel ?

@jlrdw it is package someone tested it ?

@erlesand what i need,

add Comment, Edit comment only by author or admin, Like comment, Rapport comment.

I am don`t looking for already code, can be some tutorial always something new to do :)

30 Dec
6 months ago

gidaban79 started a new conversation Comment System In Vue And Laravel ?

Hello guys,

Someone tried to build a comment system with Vue and Laravel ?

gidaban79 left a reply on Featured Posts, Companies? Idea For Store?

Right, but also i need keep something like history? Each customer should have possibility to check all previous featured times.

gidaban79 started a new conversation Featured Posts, Companies? Idea For Store?

I am looking for idea how to proper store in database featured companies in listings or something similar.

Store only one feature time in one table? with dates from to?

        Schema::create('company_features', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('company_id');
            $table->boolean('is_featured')->default(0);
            $table->timestamp('featured_from')->nullable();
            $table->timestamp('featured_to')->nullable();
            $table->timestamps();
            $table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
        });

however i need also store like history of featured times. Make another table for it?

13 Nov
8 months ago

gidaban79 started a new conversation Form Requests

Hello Guys,

i wonder about use it my project for store and update methods,

then i have to make two different Form requests?

One for store and second for update?

in both case i have to check unique name of category

'name' => [
                'required',
                'min:3',
                'max:190',
                Rule::unique('company_categories', 'name')->ignore($id)]

if i will use in controller working fine how about form requests?

in store i don't have id of record.

08 Sep
10 months ago

gidaban79 left a reply on Validate Rules When You Want To Edit Post?

How about poster ?

i tried "sometimes|image" even is empty i got error poster should be an image file

gidaban79 started a new conversation Validate Rules When You Want To Edit Post?

Hello guys,

at the beginning i would like to as about best way for validate date before put to database but only when i want to edit post.

i have fields 'title' 'body' 'poster'

$this->validate($request->all(),
[
        'title' => 'required|unique:blogs|max:190',
                'description' => 'required',
                'poster' => 'required|image|max:51200'
] );

that is simple validation when i add post

how should looks validation rules in update post ?

07 Sep
10 months ago

gidaban79 left a reply on How To Turn Off Auto Login Users ? In Laravel 5.7

@bestmomo

Yes @OriOn explain how to overwrite in REGISTER function, not in login process.

Thanks :)

gidaban79 left a reply on How To Turn Off Auto Login Users ? In Laravel 5.7

Hello guys,

i really have to turn off auto login after register or verify email.

User should login by him self.

Its is my question.

gidaban79 left a reply on How To Turn Off Auto Login Users ? In Laravel 5.7

@shez1983 @Cronix Where you can find remember me in register form ?

gidaban79 started a new conversation How To Turn Off Auto Login Users ? In Laravel 5.7

Hello guys,

i really have to turn off auto login after register or verify email.

User should login by him self.

25 Aug
10 months ago

gidaban79 started a new conversation ACL Including Access For Controllers

Hello guys :)

Someone tried to make a ACL based on database?

What i mean, in ZEND framework you can build something like that. In database are stored information :

Controller, action, access level;

for example in one controller users have to access for show action but not for create or store action.

14 Aug
11 months ago

gidaban79 left a reply on How To Use Package From Vendor Directory

yeah that is just html but for example how to link css or js files?

gidaban79 started a new conversation How To Use Package From Vendor Directory

hello guys.

i just add package to my project "almasaeed2010/adminlte" im sure everyone know what it is :)

and now how i can use it in my project?

i have to move all files form "dist" directory to public directory ?