ValsiS

Member Since 4 Years Ago

Houston

Experience Points 32,725
Experience Level 7

2,275 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 379
Lessons
Completed
Best Reply Awards 2
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.

29 Aug
2 years ago

ValsiS left a reply on "Always FREE" Plan In Spark

Hello tptompkins,

I have the same problem as you,

Did you figure out how to have a free plan by default and permanent ?

Thanks

21 Jul
2 years ago

ValsiS left a reply on 401 Unauthorized. Only On EC2, Not In Homestead

fixed somehow, but only after i setup the SESSION_DRIVER to database, can someone tell me why didn't worked with normal driver (file) ?

20 Jul
2 years ago

ValsiS started a new conversation 401 Unauthorized. Only On EC2, Not In Homestead

Hello,

I created a Laravel Spark app that works perfect on my homestead, but when i deploy (via envoyer) to EC2 server, when i login, i start to receive 401 Unauthorized. error, not always, not for the same routes. I even receive on settings, or on kiosk page, and there i didn't change nothing, it's exactly like original.

site it's up on a subdomain with https

can someone help me pls ?

i don't think this is the solution https://laracasts.com/discuss/channels/spark/spark-api-returning-401 because i don't have duplicate middleware

17 Jun
2 years ago

ValsiS left a reply on ReflectionException: Class Log Does Not Exist In /home/vagrant/Code/

In my case, the missing of PDO extension was the problem. After installing it, the problem was fixed.

10 Jun
2 years ago

ValsiS left a reply on Spark: How VueJS Insert Data Into Input ?

before to ask here i made some research, i sow that tutorials, but my question is: How i can grab data from that db table "user_data" via vuejs (similar with "user" table)

in vuejs i can access that details from that "user" table with : this.user.name or this.user.id, how to do the same with "user_data"

07 Jun
2 years ago

ValsiS started a new conversation Spark: How VueJS Insert Data Into Input ?

Hello,

I created a new form inside settings in spark. That form is for "user_data" table, it's an extension with more rows for "user" table. I was able to insert data in that table, but i don't know how to show that informations inside form inputs, via VueJS?

In a perfect world i think it will be like this:

ready() { this.form.first_name = this.user_data.first_name; }

but i don't know how to initialize that "this.user_data"

Can someone give me some ideas ?

25 May
2 years ago

ValsiS left a reply on Test Attributes/columns Existence

A solution I've found is to use Model's getAttributeValue('attribute'). Be careful that this method returns null if no such attribute exists.

17 May
2 years ago
15 May
2 years ago
14 May
2 years ago

ValsiS started a new conversation Pros And Cons Of Foreign Key In Database

Hello "artisans",

Today i played with Laravel Spark and i noticed something about tables that are inserted into database. Not any table use foreign keys, seems that @Taylor Otwell preferred not to use them.

Why?

I would normally use the foreign keys, but right now, i don't know what to do, because it's a little bit of pain to use "references" when you add tables via artisan migration.

I want to use Spark for a big project and my intention is to create tables with foreign keys. Any suggestion ?

Thanks

20 Feb
3 years ago

ValsiS left a reply on DataTables Filter And Sorting Doesn't Work As Expected


            ->orderBy('crm_meetings.meeting_at', 'asc')
            ->get();

i removed that, everything works perfect now, thanks :)

ValsiS left a reply on Composer Update Without Clear-Compiled

composer.json

on "scripts": there you have the "php artisan clear-compiled"

ValsiS started a new conversation DataTables Filter And Sorting Doesn't Work As Expected

Hello,

I have a very annoying problem with datatables

I created a table with "laravel-datatables" package and it looks like this in the controller

        $meeting = CrmMeeting::
                join('crm_customers',     'crm_meetings.customer_id',      '=', 'crm_customers.user_id')
            ->join('users AS userA',    'crm_meetings.adviser_id',       '=', 'userA.id')
            ->join('users AS userB',    'crm_meetings.booked_by_id',     '=', 'userB.id')
            ->join('crm_meeting_type',  'crm_meetings.meeting_type_id',  '=', 'crm_meeting_type.id')
            ->join('crm_meeting_status','crm_meetings.meeting_status_id','=', 'crm_meeting_status.id')
            ->select([
                'crm_meetings.id',
                'crm_meetings.parent_id',
                'crm_meetings.rgt as rgt',
                'crm_meetings.lft as lft',
                'crm_meetings.depth as depth',
                'crm_customers.name AS customer_name',
                'crm_meetings.meeting_at AS meeting_at',
                'userA.name AS adviser_name',
                'userB.name AS booked_name',
                'crm_meeting_type.name AS meeting_type_name',
                'crm_meeting_status.name AS meeting_status_name',
                'crm_meeting_status.colour AS meeting_status_colour',
                'crm_meetings.meeting_status_id',
                'crm_meetings.google_calendar_event_id',
                'crm_meetings.google_calendar_event_updated',
            ])
            ->whereRaw('crm_meetings.rgt - crm_meetings.lft = 1')
            ->where([
                ['crm_meetings.customer_id',        ($request->input('customer_id') == 0) ? '!=' : '=', $request->input('customer_id')],
                ['crm_meetings.adviser_id',         ($request->input('adviser_id') == 0) ? '!=' : '=', $request->input('adviser_id')],
                ['crm_meetings.booked_by_id',       ($request->input('booker_id') == 0) ? '!=' : '=', $request->input('booker_id')],
                ['crm_meetings.meeting_type_id',    ($request->input('meeting_type_id') == 0) ? '!=' : '=', $request->input('meeting_type_id')],
                ['crm_meetings.meeting_status_id',  ($request->input('meeting_status_id') == 0) ? '!=' : '=', $request->input('meeting_status_id')],
            ])
            ->whereBetween('crm_meetings.meeting_at', array(new DateTime($start_date), new DateTime($end_date.' 23:59')))
            ->orderBy('crm_meetings.meeting_at', 'asc')
            ->get();

and in the view it looks like this

        var oTable = $('#data-table').DataTable({
            responsive: false,
            bStateSave: false,
            processing: true,
            serverSide: true,
            deferRender: true,
            searching: true,
            paging: true,
            ajax: $.fn.dataTable.pipeline({
                method: 'POST',
                url: '{{ route('crm-meeting-book-data') }}',
                data: function(d) {
                    d.daterange         = $('#filterDate').val();
                    d.customer_id       = $('#filterCustomer').val();
                    d.adviser_id        = $('#filterSeller').val();
                    d.booker_id         = $('#filterBooker').val();
                    d.meeting_type_id   = $('#filterMeetingType').val();
                    d.meeting_status_id = $('#filterStatus').val();
                },
                dataSrc:  '',
                pages: 5
            }),
            columns: [
                { data: null, className: 'details-control', orderable: false,  defaultContent: '<i class="glyphicon glyphicon-plus" style="cursor:pointer;"></i>' },
                { data: 'meeting_status_name',  name: 'crm_meeting_status.name' },
                { data: 'customer_name',        name: 'crm_customers.name' },
                { data: 'meeting_at',           name: 'crm_meetings.meeting_at' },
                @if(!Auth::user()->is('sales'))
                    { data: 'adviser_name',     name: 'userA.name' },
                @endif
                { data: 'booked_name',          name: 'userB.name' },
                { data: 'meeting_type_name',    name: 'crm_meeting_type.name' },
                { data: 'actions',              name: 'actions', orderable: false, searchable: false },
            ]
        });

everything is fine, the data it's load in the table, everything as expected, but when i try to sort the order is not correct, when i try to fillter it will filter just for the customer_name and booked_name (the sort doesn't work for this two)

Thanks

01 Feb
3 years ago

ValsiS left a reply on Google API - Service Account Connection - Laravel 5

can someone help me with this ?

i don't know how to create that Client ID,

step by step explication it will be perfect

16 Jan
3 years ago

ValsiS left a reply on Where Are You All From?

Craiova, Romania

23 Aug
3 years ago

ValsiS left a reply on [5.12] G Chrome Causes TokenMismatchException On Form Submit

it's a new packadge for this

https://github.com/GeneaLabs/laravel-caffeine

it will help you, in case of timeout

19 Aug
3 years ago

ValsiS left a reply on Laravel 5.1 - Same Form For Create And Edit Page

oo perfect ;) thanks i didn't know that with old() works , thanks a lot

ValsiS left a reply on Laravel 5.1 - Same Form For Create And Edit Page

thanks @ohffs , but how i autopopulate for input with value when i'm in edit mode ?

ValsiS started a new conversation Laravel 5.1 - Same Form For Create And Edit Page

Hello,

On my new project i have a lot of pages with forms . Can you suggest me the best solution to don't repeat myself creating the form pages for create and edit.

Thanks

30 Jul
3 years ago

ValsiS left a reply on How To Get The User-agent Information From The Request Object?

$request->server('HTTP_USER_AGENT');

success

23 Jun
3 years ago

ValsiS left a reply on How To Implement Chat Like That One

@socieboy i sow your "chat" dev, looks very good, but as @ELD said, i prefer to have it with Socket.IO insted of Pusher (because Pusher is a paid solution)

see this tutorial https://laracasts.com/discuss/channels/general-discussion/step-by-step-guide-to-installing-socketio-and-broadcasting-events-with-laravel-51

i will use for sure your "chat" if it will have Socket.io

ValsiS left a reply on Where I Wrong ? Npm Install - Error

now i know what is the problem

on package.json i have the next version of laravel-elixir

"laravel-elixir": "^2.0.0"

it's imposible for me to install that, but i changed to version 1.0.0 and everything was ok

22 Jun
3 years ago

ValsiS left a reply on Where I Wrong ? Npm Install - Error

It's imposible for me to make that "npm install" to work ...

it was a clean install, i did exactly how is in documentation

ValsiS left a reply on Where I Wrong ? Npm Install - Error

@bashy ty

the npm install --global gulp was ok now, but i have the next problem for npm install

  • this is very strange :(

vagrant@homestead:~/Projects/CRM$ npm install
npm WARN optional dep failed, continuing fsevents@0.3.6
npm ERR! tar.unpack untar error /home/vagrant/.npm/number-is-nan/1.0.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/number-is-nan/1.0.0/package.tgz

> node-sass@3.2.0 install /home/vagrant/Projects/CRM/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass
> node scripts/install.js

Binary downloaded and installed at /home/vagrant/Projects/CRM/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-14/binding.node

> node-sass@3.2.0 postinstall /home/vagrant/Projects/CRM/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass> node scripts/build.js

` /home/vagrant/Projects/CRM/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-14/binding.node ` exists.
 testing binary.
Binary is fine; exiting.
npm ERR! Linux 3.16.0-23-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! path /home/vagrant/Projects/CRM/node_modules/laravel-elixir/node_modules/gulp-phpspec/node_modules/gulp-todo/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan
npm ERR! code EPROTO
npm ERR! errno -71

npm ERR! EPROTO, mkdir '/home/vagrant/Projects/CRM/node_modules/laravel-elixir/node_modules/gulp-phpspec/node_modules/gulp-todo/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 3.16.0-23-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! path npm-debug.log.cfe025dd64df1e2d93d4b56aae15fa11
npm ERR! code ETXTBSY
npm ERR! errno -26

npm ERR! ETXTBSY, rename 'npm-debug.log.cfe025dd64df1e2d93d4b56aae15fa11'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vagrant/Projects/CRM/npm-debug.log
vagrant@homestead:~/Projects/CRM$ gulp

ValsiS started a new conversation Where I Wrong ? Npm Install - Error

Hello,

I setup on an Windows OS the Homestead VM, everything was ok, i was able to access the homestead.app,

but... in the Git Bash console i used the vagrant ssh to login to the homestead and there when i tried to install Laravel Elixir i received the next error



vagrant@homestead:~/Projects/CRM$ npm install --global gulp
npm ERR! Linux 3.16.0-23-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--global" "gulp"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! path /usr/bin/gulp
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, unlink '/usr/bin/gulp'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, unlink '/usr/bin/gulp'] errno: -13, code: 'EACCES', path: '/usr/bin/gulp' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/usr/bin/gulp'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  { [Error: EACCES, unlink '/usr/bin/gulp'] errno: -13, code: 'EACCES', path: '/usr/bin/gulp' }
npm ERR! Linux 3.16.0-23-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--global" "gulp"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! path npm-debug.log.de85a19d4280733d85aa813995491c22
npm ERR! code ETXTBSY
npm ERR! errno -26

npm ERR! ETXTBSY, rename 'npm-debug.log.de85a19d4280733d85aa813995491c22'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vagrant/Projects/CRM/npm-debug.log
vagrant@homestead:~/Projects/CRM$

That was a fresh install of Laravel, of everything ...

26 Feb
4 years ago

ValsiS left a reply on [L5] Date_default_timezone Error On Clear-compiled

Thanks

Taylor was very fast and i see he fix this problem in 5.0.10 :)

ValsiS left a reply on [L5] Date_default_timezone Error On Clear-compiled

I have the same problem, even when i made a fresh install

5.0.7 doesn't have that problem, but 5.0.9 have it

Any suggestion ?