sanjay23

sanjay23

Member Since 4 Years Ago

Pune

Experience Points 1,895
Experience Level 1

3,105 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 0
Lessons
Completed
Best Reply Awards 0
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.

13 Mar
3 months ago

sanjay23 left a reply on Error Log Problems When Using Laravel Passport For User Login Authentication

I am facing the same issue, But in my case, I am using API's and not sure which API cause this issue. Is there any way to get API's link which causes this error.

01 Mar
3 months ago

sanjay23 left a reply on Python Backend, Laravel Frontend, API Connection

Hello Team, I am also in dilemma to choose laravel as frontend. However the purpose behind this the URL management and SEO. so is any javascript framework fulfill the SEO purpose. As Laravel allow to modify the URL at any level.

08 Feb
4 months ago

sanjay23 started a new conversation Internal Links Forcefully Redirect To Https Instead Of Http

Hello Team,

My website is forcefully redirected to https. however, on the work page, we display an example of sites. some of them having https and some HTTP. But due to main site https redirection htaccess rule, all external site links include https due to this it shows error. Does anyone have proper htaccess rule or any solution by which we can redirect the main site to https but not the work page and its external portfolio site links?

15 Jan
5 months ago

sanjay23 started a new conversation Socket.io + Laravel 5.6 + Android & Ios App

Hello Team,

I would like to send some data from the server to the mobile app using socket.io I have researched a few articles but not able to get them to work. Does anyone have a proper article to integrate this feature?

Also, want to know which one is better either Redis or sqllite.

Thanks in Advance!

19 Dec
6 months ago

sanjay23 left a reply on Laravel - Unable To Open File For Reading / Swift_IoException

Is your issue resolved? I am also facing the same issue.

I have set up the project like

example.com - set in root folder demo.example.com - set in root/public/demo folder

Does it make any difference?

13 Nov
7 months ago

sanjay23 left a reply on Karaoke Player With Audio Record And Check Word Properly.

Yes, I have checked. Is there any alternative for this?

sanjay23 started a new conversation Karaoke Player With Audio Record And Check Word Properly.

Hello Team, In one of my requirement, I would like to integrate Karaoke player which has singer lyrics.

So as a system will display some of the lyrics, Then we need to find a singer to sing a song. The system will identify pronunciation and mark the word correct/incorrect.

Any reference would be appreciable.

Thank you Sanjay

sanjay23 left a reply on Convert Application To Progressive Web App

Hello Team,

Is anyone knows this progressive web app offline along with notification, Please suggest me any good options?

Thank you Sanjay M.

31 Oct
7 months ago

sanjay23 started a new conversation ACF Support Laravel???

Hello Team,

Do we have any way to integrate ACF - the Advanced custom field in laravel - any package would be really helpful or the way to integrate it.

Thank you in advance.

25 Oct
7 months ago

sanjay23 started a new conversation Convert Application To Progressive Web App

Hello Team,

I am following one of the medium articles to setup PWA, However not able to generate service worker. Ref - https://medium.com/@IO_/https-medium-com-io-building-progressive-web-apps-with-laravel-57f6bfa3ddb1

Can anyone know proper guide which can be helpful to set up this?

Thanks in advance!

22 Oct
7 months ago

sanjay23 left a reply on Auth Destroyed Automatically After Redirect To Any URL | Auth:Check() False

@vladshoob - Are you any particular folder or storage only (777) permission

sanjay23 started a new conversation Auth Destroyed Automatically After Redirect To Any URL | Auth:Check() False

Team, I am able to login to the system and can see the "Auth" too, However, while redirecting any URL I used middleware in which just auth check method. However, If I print "Auth: check()" it returns false on this page. Anyone have the idea why this error comes in.

Shocking - It is working on localhost perfectly. But on the server, this issue persists.

thanks

21 Sep
8 months ago

sanjay23 left a reply on Unable To Create Image With Intervention

@laocoi - What is the purpose of using this cacert.pem file, I am also facing the issue Unable to init from given binary data for intervention. Any solution for this.

sanjay23 left a reply on Unable To Init From Given Binary Data | Intervention | Laravel 5.6

@Tray2 I have checked the permission for the folders,

The image is stored in storage/app/public/profile/sample.php and it has 777 permission

sanjay23 started a new conversation Unable To Init From Given Binary Data | Intervention | Laravel 5.6

Hello,

I am using the image intervention library to store my images and convert them with the proper size.

Let's say I have uploaded one 5MB image which is stored in the base folder then, We have to take that original image and crop them in various sizes for this purpose we used the following code

$img = Image::make(asset('assets/images/sample.png'));
$img->crop(3000,4000,100,200);
$img->fit(500, 625);
$img->save(Storage path);

However, it giving me the error like -

{message: "Unable to init from given binary data.",…}
exception: "Intervention\Image\Exception\NotReadableException"
file: "/public_html/project/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php"
line: 113

We have tried by sending URL path and Storage path too but same error.

Any would be appreciable.

Thank you

09 Sep
9 months ago

sanjay23 left a reply on Profile Changes Approve/reject - Keep The Current As Active

@Snapey - Not actually, I see there some responses which might help my situation. However, I looked at some more scenarios which hold me to integration like.

  1. User add his data first time (first name and last name)
  2. User update only first name (if we insert this data in the same table with status pending)
  3. Now user again visit his profile - So we need to display his old updated values (like the first name which pending for approval) now in this attempt he changed the last name which might be again new request or else we can update the already pending request (not sure how to achieve this)
  4. Then again user visits his profile for the 3rd time and wants to show him all previous changes he did which are still under progress of approval.
  5. Now admin can see the old live values and updated values and then he approves the changes only a few like the first name only but not last name

This is something I want to achieve.

sanjay23 left a reply on Nested Eager Loading With Where

This nested eager loading thing is work well only if we fetch a single record, However, if suppose I have to fetch multiple records with pagination of 10. so it is taking too much time to get the result so is there any possible way to decrease this timeline.

sanjay23 left a reply on Multilevel Table Join With Eloquent Relationship

@kinjs12 , I have tried this method, for the single record, it works well. However, I have to show the listing of all applicant with job and job owner details so in that case, it is taking too long to get the result.

any other solution or any way to reduce the time?

sanjay23 left a reply on Profile Changes Approve/reject - Keep The Current As Active

Does anyone have a good solution for this? I am still looking for the solution which helps to achieve this features.

21 Aug
9 months ago

sanjay23 left a reply on Dynamic Accessor Not Working In Case Of Get() Or Paginate()

Got it, Was sending $value instead of $this->status or $this->attributes('status')

Now it's working fine.

sanjay23 left a reply on Dynamic Accessor Not Working In Case Of Get() Or Paginate()

I can see the newstatus in output but it is returning like "newstatus": null

sanjay23 left a reply on Dynamic Accessor Not Working In Case Of Get() Or Paginate()

In my model, I have added the following code

protected $appends = array('newstatus');

public function getNewstatusAttribute($value) {
        switch ($value) {
            case 1:
                return 'Applied';
                break;
         }
}

Now In controller $arrUser = User::get();

echo $arrUser->newstatus; but it shows null

Any idea how to access this dynamic accessor values in the controller.

09 Aug
10 months ago

sanjay23 started a new conversation Multilevel Table Join With Eloquent Relationship

Hello,

I would like to join the multilevel table and fetch the data, Eg.

  1. Applicant table - Need to fetch all applicant on job - applicant module
  2. Job - Need to fetch job details (it work with job_id belongs to) - job module
  3. Owner details - Need to fetch job owner name, dob other details (it join with job table ) - user module

Can we fetch this kind of data by using the relationship query?

I am using currently $arrApplied = Applicant::with('Job')->active()->paginate(5); But now need to fetch job owner detail from 3rd level of owner table.

Any help would appreciable.

sanjay23 started a new conversation Dynamic Accessor Not Working In Case Of Get() Or Paginate()

Hi, I have created dynamic accessor like

public function getStatusDisplayAttribute()
{
    if($this->status == '1')
            return 'Pending';
}

This dynamic/customized accessor worked if we call on first() collection, However, it is not working in case of get() or paginate()

Any solution to get it to work!

06 Aug
10 months ago

sanjay23 left a reply on Development Of An EWallet System For ECommerce Application

@JoerJoers - Is it possible to store some other references too, like for product purchase, service charges pay via only my wallet to another provider wallet. So do you mind if you post your thoughts on this too?

sanjay23 started a new conversation E-Wallet Database Structure

Hello Team, I'ld like to create e-wallet in one of application, Concept is, User can add/withdrawn money in the wallet, Use that wallet amount in various transactions like product purchase, Service request, general pay. so do you guys suggest any database structure which can be standard and work in all cases. I have created transaction table with type and ref id, which refer order,transaction, service. So any more suggestion would be helpful.

03 Aug
10 months ago

sanjay23 left a reply on Profile Changes Approve/reject - Keep The Current As Active

Anyone have solution for this? We need to keep the old information as it is unless the new changes approved and once it is approved then replace the new one.

01 Aug
10 months ago

sanjay23 left a reply on Accessor | Can We Set Using Other Eloquent Model

@36864 I checked and follow the steps, But still no success. Any reference link or example link would be really helpful.

27 Jul
10 months ago

sanjay23 left a reply on Accessor | Can We Set Using Other Eloquent Model

@yusuf128 I tried this, Now it giving null value in collection.

sanjay23 left a reply on Accessor | Can We Set Using Other Eloquent Model

@murilo I have tried the way you mentioned.

    public function state()
    {
        return $this->relationship('App\Model\State');
    }

    public function getStateAttribute()
    {
        return $this->state->name;
    }

But it giving error like

"Undefined property: App\Model\Post::$state"

Anything wrong I did :(

sanjay23 left a reply on Accessor | Can We Set Using Other Eloquent Model

@wajdi thanks for your solution, However I would like to Accessor at Eloquent level, So I don't want to write the extra code in blade.

sanjay23 started a new conversation Accessor | Can We Set Using Other Eloquent Model

Hi,

I am using state_id, country_id in my post table, However while fetching post data, I want to show the state name, country name instead. So I would like to know is it possible in model to set accessor in the way it will fetch state name and display in result.

I am trying the way like below

public function state()
    {
        return $this->hasMany('App\Model\State', 'id');
    }

    public function getStateAttribute()
    {
        return $state = $this->state()->find(2307);
    }

It should return state name instead of id. Is it possible, Can anyone suggest solution for this.

Thanks

26 Jul
10 months ago

sanjay23 left a reply on Profile Changes Approve/reject - Keep The Current As Active

@Tomi thanks for your comment. I am still looking for a good secure solution which really helpful to integrate in the system and keep the data secure.

As we have to maintain the update request too, after few request it should skip the process.

23 Jul
10 months ago

sanjay23 started a new conversation Profile Changes Approved/reject - Keep The Current As Active

Hello Team, Would like to integrate one feature in my app, Whenever user update his profile information like name, dob, or profile image. so before display admin need to approve it. Till then it should be pending mode but also want to show what was the originally when user visit profile. Is any package available to do this at model level and more secure and standard way. Thanks in advance.

21 Jul
10 months ago

sanjay23 started a new conversation Show Calendar With Total Work Hours On Daily Basis By Multiple Employee

Hi, I want to display calendar for a month which has to display total work hours for all employee together Eg. July [1-7-18] = 40 (total of 4 employee) [2-7-18]= 35 (total of 4 employee but 1 employee work 5 hours less on this day) [3-7-18] = 30 (total of 4 employee but 2 employee work 5 hours less on this day) [4-7-18] = 40 (total of 4 employee) So on ....

Data stored as Default work hours(single entry for each employee) and Custom work hours (multiple entry for each employee)

Is anyone have good solution for this using laravel.

Thanks in Advance!

18 Jul
11 months ago

sanjay23 started a new conversation URL - Remove Square Bracket From Url While Using GET Method

Hi, I want to create a search module in which I have multiple value for one field like category = Movies and Drama so my current url look like

Html

<form action="search" method="GET">
<select name=category[]>
<option value="movie">Movies</option>
<option value="drama">Drama</option>
</select>
<button name="search">
</form>

http://localhost/projectname/search?category%5B%5D=movies&category%5B%5D=drama

Actually it should be look like http://localhost/projectname/search?category=movies,drama

Can anyone help me to get this work as expected.

Thanks in advance

17 Jul
11 months ago

sanjay23 left a reply on Performance Check Tool For Large Scale Site

@lostdreamer_nl - I know about this tool, However is any other tool/package which we can install in laravel project and check performance and work on improvement.

sanjay23 started a new conversation Performance Check Tool For Large Scale Site

I am working on large scale site - Project management, So I would like to check the performance of site with large database - any tool suggestion would be helpful.

sanjay23 left a reply on Want To Create API - Standard Way Of Implementation

@hdsavani - thanks for a link. I am referring this same tutorial. However I have one concern about the Route file.

The article shows route file should look like -

  1. List: Verb:GET, URL:http://localhost:8000/api/products

  2. Create: Verb:POST, URL:http://localhost:8000/api/products

  3. Show: Verb:GET, URL:http://localhost:8000/api/products/{id}

  4. Update: Verb:PUT, URL:http://localhost:8000/api/products/{id}

  5. Delete: Verb:DELETE, URL:http://localhost:8000/api/products/{id}

Instead of this, Can we use single Resource method or any other way to make route file smaller. Or the way it mentioned in article is standard way?

I have one more article as suggested @jlrdw https://medium.com/@adelekandavid2013/laravel-restful-api-development-a-step-by-step-approach-part-1-fdf9341662e6

Which has some different method. So I am just curious about what is the standard and secure way.

16 Jul
11 months ago

sanjay23 started a new conversation Want To Create API - Standard Way Of Implementation

Hello Team, Would like to create API for mobile app, Is any standard steps to create the more secure and standard API's which minimize the code and help to manage things easily. Thanks in advance!

10 Jul
11 months ago

sanjay23 left a reply on Where Condition On Child Table

@staudenmeir Yes I am using JOIN and it working fine. Apart from this just want to check if anything manage by Eloquent instead of this JOIN etc.

09 Jul
11 months ago

sanjay23 left a reply on Where Condition On Child Table

@staudenmeir I know this is the choice, However I think this is cross join which increase the query time, and it will be harmful in case of 50K records in my table So want to avoid this

@Tray2 I want to stay with Eloquent only.

sanjay23 started a new conversation Where Condition On Child Table

I have two tables, user and usermeta. My question, I want to fetch the user table data which has child table usermeta too, However data should be display only for usermeta.status active? Only those users which are active but not all user.

I know whereHas but this is not proper, So any other solution can anyone suggest.

Thanks for your kind help!

14 Jun
1 year ago

sanjay23 left a reply on Storage Link Not Loading Image After Symlink

@Snapey @lostdreamer_nl we are still unable to load the image, don't know what's wrong with this. Can I restart this all from the initial, Is any way so I can reset the setting and start from initial steps. please send me steps if you have.

11 Jun
1 year ago

sanjay23 left a reply on Storage Link Not Loading Image After Symlink

@Snapey There was public in the URL so I managed that via document root and subdomain document root set to /public_html/project/public so all links are loading perfectly fine. However only this image thing is not working properly which causes a very big problem in my project.

sanjay23 left a reply on Storage Link Not Loading Image After Symlink

@lostdreamer_nl I am using the same URL as you mentioned, In the browser it shows Sorry, the page you are looking for could not be found It hold me to go live :( :(

08 Jun
1 year ago

sanjay23 left a reply on Storage Link Not Loading Image After Symlink

@lostdreamer_nl yes all the commands work perfectly fine.

-rwxrwxrwx 1 meet meet 15265 May 22 13:53 img-4_1526997214.jpg

But still I am not able to see this image. However on local it is working but somehow on server it is not :(

sanjay23 left a reply on Storage Link Not Loading Image After Symlink

@lostdreamer_nl thanks for your quick reply, I had check the commands so you mentioned

[[email protected] project]# ls -al public/ total 56 lrwxrwxrwx 1 root root 48 May 21 14:39 storage ->/public_html/project/storage/app/public

However I am still not able to view the image in browser. Any more comments would be helpful.

Thank you

sanjay23 started a new conversation Storage Link Not Loading Image After Symlink

Hello Team,

I have run the command - php artisan storage:link

Then it created a folder in /project/public/ with the name /storage/custom_folder/images.jpg

And the same image stored in /project/storage/app/public/custom_folder/images.jpg

In blade I am using <img src="{{ url('storage/app/public/custom_folder/images.jpg') }}"> but it doesn't work then we tried another way <img src="{{ asset('/storage/custom_folder/images.jpg') }} this is also not working.

Can anyone give me resolution for this.

Laravel V 5.5

Thanks in Advance