jinsonjose

jinsonjose

Member Since 1 Year Ago

Experience Points
29,280
Total
Experience

720 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
272
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

Level 6
29,280 XP
Sep
18
3 days ago
Activity icon

Replied to How Reduce Size Of App.js And Vendor.js Or How To Split Vendor To Different Chunks

@niush thanks for the wonderfull solution its working fine and reduce the size to kb

i applied the lazy loading techniques on vue router exactly i am looking this one https://router.vuejs.org/guide/advanced/lazy-loading.html

thanks

Sep
16
5 days ago
Activity icon

Replied to How Reduce Size Of App.js And Vendor.js Or How To Split Vendor To Different Chunks

import { LMap, LTileLayer, LMarker } from 'vue2-leaflet';

used in different components and and each component its imported

is that right way ??

is not please suggest another way

Activity icon

Replied to How Reduce Size Of App.js And Vendor.js Or How To Split Vendor To Different Chunks

@niush import { LMap, LTileLayer, LMarker, LPopup } from 'vue2-leaflet';

only using the required modules on 'vue2-leaflet'

also like v-calendar & moment

can you suggest any other option

how to reduce this mb to kb whats the right method any idea?

Sep
15
6 days ago
Activity icon

Replied to How Reduce Size Of App.js And Vendor.js Or How To Split Vendor To Different Chunks

@bobbybouwmann 2mb is after running npm run prod

is it have any method for splitting the vendor.js

(vue cli is not used in this project)

Activity icon

Started a new Conversation How Reduce Size Of App.js And Vendor.js Or How To Split Vendor To Different Chunks

in production its size shows big and take time on loading how to reduce size of this files

in webpack.mix.js

mix.js('resources/js/app.js', 'public/js') .sass('resources/sass/app.scss', 'public/css').extract();

extracted to seperated files

vendor.js files size is 2.04mb how can i reduce the size

it shows affect the speed

package.json file below

{ "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.19.2", "bootstrap": "^4.5.0", "cross-env": "^5.1", "jquery": "^3.5.1", "laravel-mix": "^4.0.7", "lodash": "^4.17.19", "popper.js": "^1.16.1", "resolve-url-loader": "^2.3.1", "sass": "^1.26.10", "sass-loader": "7.*", "vue": "^2.6.11", "vue-template-compiler": "^2.6.10" }, "dependencies": { "bootstrap-vue": "^2.15.0", "chart.js": "^2.9.3", "jspdf": "^2.1.1", "jspdf-autotable": "^3.5.12", "leaflet": "^1.6.0", "moment": "^2.27.0", "run": "^1.4.0", "sweetalert2": "^9.15.3", "v-calendar": "^1.0.8", "vform": "^1.0.1", "vue-css-donut-chart": "^1.3.0", "vue-google-charts": "^0.3.3", "vue-loading-overlay": "^3.3.2", "vue-plain-pagination": "^0.3.0", "vue-router": "^3.3.4", "vue-search-select": "^2.9.3", "vue-sweet-calendar": "^0.3.1", "vue2-datepicker": "^3.6.0", "vue2-leaflet": "^2.5.2", "vue2-leaflet-markercluster": "^3.1.0" } }

Jun
18
3 months ago
Activity icon

Started a new Conversation How To Create Breadcumbs On Laravel

how to create a breadcumbs on blade in laravel

i used this package composer require davejamesmiller/laravel-breadcrumbs:5.x

but its showing 500 error on that route page {{ Breadcrumbs::render('home') }}

how to handle this i am using "laravel/framework": "^6.2"

can you help ??

Jun
15
3 months ago
Activity icon

Replied to How To Create A Pagination In Vue + Laravel

@Snapey how to handle this?? can u give an idea

Jun
11
3 months ago
Activity icon

Started a new Conversation How To Create A Pagination In Vue + Laravel

i want a pagination like < 1-10 of 189 > like this how to handle this in vue ??

any package to handle this??

can you help??

May
12
4 months ago
Activity icon

Replied to How To Set A Session Variable In Laravel Login Time And How To Get That Session Variable In Laravel Api

@prasadchinwal5 How to set that in AppServiceProvider??

can you give an example that will help me!

Activity icon

Started a new Conversation How To Set A Session Variable In Laravel Login Time And How To Get That Session Variable In Laravel Api

how to set a session variable in laravel login time and how to get that session variable in laravel api

in my api routes are protect using laravel passport method

i am developing laravel application with vuejs

my concern is that i want to set a variable on globally in login time and i want to check that value every time also some time i want to change that value

Apr
08
5 months ago
Activity icon

Replied to How To Get User Id In Constructor

@tisuchi its not working


namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use \App\User;

class HomeController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
        $this->userID = Auth::user()?Auth::user()->id:null;
        echo $this->userID;
        echo "test";
        exit();
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
    public function index()
    {
        return view('home');
    }


}```

only it returns null values any other suggestions??
Activity icon

Started a new Conversation How To Get User Id In Constructor

how to get authenticated user id in constructor

Auth::user()->id;

using laravel6

Activity icon

Replied to Middleware Restriction In Controller In Laravel

@talion can you give me an example?

actually $this->middleware('2fa'); is google auth 2fa verification middleware

Activity icon

Started a new Conversation Middleware Restriction In Controller In Laravel

public function __construct()
    {
        $this->middleware('auth');

        if(Auth::User()->fa_status ==1) {
            $this->middleware('2fa');  
        }

    }

i want to restrict middleware 2fa only user fa_status ==1 then only middleware('2fa') check only

how to do that i am using laravel 6

shows error msg as

Trying to get property 'fa_status' of non-object
http://127.0.0.1:8000/home```
Apr
07
5 months ago
Activity icon

Replied to How To Apply Google2fa-laravel In Laravel

@snapey if user need to scan the qr code each and every time or once in login??

how to do that

Activity icon

Started a new Conversation How To Apply Google2fa-laravel In Laravel

in my concern is that its have only login system only admin is created the users so how to add the 2fa authentication in laravel

main problem is its have no register then hoe to do that?

please give suggestions

Mar
26
5 months ago
Activity icon

Started a new Conversation How To Get Another Table Data Can Be Select

my query

            $limt_contact_list = SectorContact::select('sectors.id AS sector_id', 'sectors.name AS sector_name', 'sectors.dx_no AS dx_no', 'sector_contacts.id AS contact_id','sector_contacts.title AS contact_title','sector_contacts.first_name AS first_name','sector_contacts.last_name AS last_name','sector_contacts.email AS email')
                      ->where('sector_contacts.sector_type', 1)
                      ->where(function($query) use($sc_data) {
                        // search the word on table sectors where sector_type = 4
                        $query->where('sector_contacts.first_name', 'LIKE', '%' . $sc_data['first_name'] . '%')
                            // ->orWhere('sector_contacts.first_name', 'LIKE', '%' . $sc_data['first_name'] . '%')
                            ->Where('sector_contacts.last_name', 'LIKE', '%' . $sc_data['last_name'] . '%')
                            ->Where('sector_contacts.email', 'LIKE', '%' . $sc_data['email'] . '%')
                            // check bdms (belongs relation to bdms table) name in bdms table
                            ->WhereHas('sectors', function (Builder $query) use($sc_data) {
                                $query->where('sectors.name', 'LIKE', '%' . $sc_data['sector_name'] . '%')
                                    ->Where('sectors.dx_no', 'LIKE', '%' . $sc_data['dx_no'] . '%');
                            });
                        })
                        ->get()
                        ->toJson();

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'sectors.id' in 'field list' (SQL: select sectors.idassector_id, sectors.nameassector_name, sectors.dx_noasdx_no, sector_contacts.idascontact_id, sector_contacts.titleascontact_title, sector_contacts.first_nameasfirst_name, sector_contacts.last_nameaslast_name, sector_contacts.emailasemailfromsector_contactswheresector_contacts.sector_type = 1 and (sector_contacts.first_nameLIKE %T% andsector_contacts.last_nameLIKE %Bentley% andsector_contacts.emailLIKE %[email protected]% and exists (select * fromsectorswheresector_contacts.sector_id=sectors.idandsectors.nameLIKE %% andsectors.dx_noLIKE %% andsectors.deleted_atis null)) andsector_contacts.deleted_at is null)

the issue is whereHas Values is not getting in select how to solve ??

any ideas??

Activity icon

Replied to Huge Array Data Duplication Checking Shows Execution Time Exceeded

@cliffordatcaveodotnl my purpose is compare table fields and data may be different in some cases only email and dx_no same so distinct() is not work in this scenario

Activity icon

Replied to Huge Array Data Duplication Checking Shows Execution Time Exceeded

@cliffordatcaveodotnl how to do that?

checking for duplicates on these all selected fields

select('s.id AS sector_id', 'c.id AS contact_id', 's.name AS sector_name', 's.dx_no AS dx_no', 'c.title AS contact_title', 'c.first_name AS first_name', 'c.last_name AS last_name', 'c.email AS email')

how to filter using query ?

can you give me an example ??

Activity icon

Started a new Conversation Huge Array Data Duplication Checking Shows Execution Time Exceeded

$contact_list = DB::table('sector_contacts AS c') ->leftJoin('sectors AS s', 'c.sector_id', '=', 's.id') ->select('s.id AS sector_id', 'c.id AS contact_id', 's.name AS sector_name', 's.dx_no AS dx_no', 'c.title AS contact_title', 'c.first_name AS first_name', 'c.last_name AS last_name', 'c.email AS email') ->where('c.sector_type', 1) ->get() ->toJson();

$contact_list contains around 15000 records in below second foreach extract checking shows error like Maximum execution time of 60 seconds exceeded , also increases the maximum execution time upto 10 minute but same exception happening Maximum execution time of 600 seconds exceeded how to solve this

foreach ($contact_json as $sc_data) { foreach ($contact_json as $sc_data1) { // code } }

could you help??