himanshurajvanshi

himanshurajvanshi

laravel Developer at Delhi

Member Since 1 Year Ago

Roorkee

Experience Points
10,960
Total
Experience

4,040 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
63
Lessons
Completed
Best Reply Awards
6
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 3
10,960 XP
Feb
28
1 month ago
Activity icon

Replied to Problem After Login

hI @floatinghero105 I will recommended please check this serice to under stand laravel functionality bcause on laravel we do not need to create login or registation but if you create custom that good what error are you getting.

https://laracasts.com/series/laravel-6-from-scratch

Jan
29
2 months ago
Activity icon

Replied to Add Input Field From Select Box

@armancs you have to create onChange function then you need to get vale from select box then append those vale into text fields.

Jan
28
2 months ago
Activity icon

Replied to SQLSTATE[HY000]: General Error

@hadis you do not send any value to this colum 'short_explaine' you have to make it as null into table or make it required into UI.

Jan
09
2 months ago
Activity icon

Replied to How To Merge 2 PDF Files Into 1 PDF With 1 Page And 2 Layers

Why not you create you own html page for that which type pdf you want need then convert this page to your pdf format i think that will be easy think for you.

Activity icon

Replied to I Want To Sort By Created Data In Blade

@raimdanish if you want to sort into blade there is two option first one you have to create button then hit query and second one you can use Data table other wish use orderBy and latest into controller.

Activity icon

Replied to Laravel Many Apps Serve Localhost

@fabriciog

aravel how to run laravel without “php artisan serve” command. first install laravel. whenever start or use laravel that every time run the “php artisan serve” command in cmd. But it take every time take time, so it’s time consuming. but today, we will share some trice of laravel how to run without “php artisan serve” command.

Rename File

First find the “server.php” file in root your project directory. that file rename to “index.php”.

htaccess File

Copy the “.htaccess” file in public directory and paste on root your project directory.

You completed above step, then after You can run laravel without “php artisan serve” command. I hope this tutorial will be helpfull for laravel.

Change Assest Url

if you are not working of assest Url, Then go to config folder and open the app.php file. You can change assest Url in this file. like as “http://localhost/your-Project-Folder-Name/public/”

Activity icon

Replied to Laravel-dompdf - Table, Tr, Td Height

@vardhan_kspl When you create html to pdf you have to give in line css that css will work what you want to performance so try

Jan
07
3 months ago
Activity icon

Replied to How To Manage Application With Multiple Role Users

@noblemfd You need role and permission base application i will suggest you spatie laravel package for more information go throw the link and example

link-->https://www.itsolutionstuff.com/post/laravel-58-user-roles-and-permissions-tutorialexample.html

Jan
02
3 months ago
Activity icon

Awarded Best Reply on How To Display Holidays Based On Location?

@shrutiupari

You have to manage all think from your end like create another table where holiday assign to city from that when you will get record you can get base on city. You have to assign city to holiday other which is not assign that holiday will be for all city.

Dec
26
3 months ago
Activity icon

Replied to Best Way To Learn Laravel

@arjunkumar

You need to flow documation of laravel as well as you have to flow laravel series on laracast

Doc link

https://laravel.com/docs/6.x

Series link

https://laracasts.com/series/laravel-6-from-scratch

Dec
24
3 months ago
Activity icon

Replied to PostToolargeException

@mnd

you are uploading too large file that why reason this error come you have to make change into php.ini file

post_max_size = 250M

upload_max_filesize = 250M

memory_limit = 250M

then restart apache and check info.php file on browser

Activity icon

Replied to Church Membership System - Concept To Code

@hackroot

Into your website you have to flow role base user where different user have different work and permision i will suggest go throw link here is role base package you can use them.

https://docs.spatie.be/laravel-permission/v3/installation-laravel/

for more info check example here

https://www.itsolutionstuff.com/post/laravel-56-user-roles-and-permissions-acl-using-spatie-tutorialexample.html

Activity icon

Replied to Get Image Properties In Laravel

@revathi are you storing those details into database then you can get details base on id or base on image name also. IF you need anythink else then give more details.

$data=ModelName::where('id',1)->get();

Dec
20
3 months ago
Activity icon

Replied to Multi Select Checkbox In Datatable

you can store id or name with comma separated like this column={5,2,7} or column={'Hindi,'english,etc}

Activity icon

Replied to Date Validation

Use date you can use carbon

please check link

https://carbon.nesbot.com/docs/

Activity icon

Replied to How To Display File In Laravel

@van-india

On blade you have to check file extension file this is image then you have to apply image view code otherwish this is pdf then you have to use code to view pdf (or javascript have code for download) file .You can do this think also into controller

$infoPath = pathinfo(public_path('/uploads/my_image.jpg'));
  
$extension = $infoPath['extension'];
dd($extension);```
Activity icon

Replied to How To Display Holidays Based On Location?

@shrutiupari

You have to manage all think from your end like create another table where holiday assign to city from that when you will get record you can get base on city. You have to assign city to holiday other which is not assign that holiday will be for all city.

Activity icon

Replied to Laravel Delete Is Not Working

@ridwanislam

By use of DB

DB::table('cprefs')->where('user_id', $user_id)->delete();

By use of Model

cpref::where('name', $name)->delete();

for more information read this

https://laravel.com/docs/5.8/queries#deletes

Activity icon

Replied to Middleware That Has Logged In And Not Logged In Checks

@mdhas I think in this scenario you can use gates please go throw link for more information

https://laravel.com/docs/5.8/authorization#authorizing-actions-via-gates

Dec
18
3 months ago
Activity icon

Replied to Video Filter Text Font Change

@tisuchi

could you guide me what i have to do or from where i can get information

Activity icon

Started a new Conversation Video Filter Text Font Change

I have video clip and want to add fillter like color or text postion change many more think could you help me how can I do such as a think which package or technology i have to you for that because i do not have any idea for that.

i need like that check link (https://prnt.sc/qci8gj)

Dec
13
3 months ago
Activity icon

Replied to Multiple Where

$user=User::where('is_active','yes')->where('age',18)->get();

you can use also orWhere.

Dec
12
3 months ago
Activity icon

Awarded Best Reply on Image Upload E

@mbo

if($request->ajax()) { 
        $photo = Photo::find($request->photoId); //Get image by id or desired parameters

        if(File::exists($destinationPath.$photo->file_name)) //Check if file exists
            File::delete($destinationPath.$photo->file_name) //Delete file from storage

        $photo->delete()   //Delete file record from DB

        return response('Photo deleted', 200); //return success
    }

delete image like this or if user have those image path then remove those path from imahe column where you assign to image to user table.

Activity icon

Replied to How To Send Ajax Request On Data That Added By Another Ajax Request ?

When you add new category you have to send new category list(append get category list from DB) to Ui then it will delete what category you want to delete.

Dec
10
3 months ago
Activity icon

Replied to Undefined Variable Info

have you change this

It is working!! {{ $info}}

actully problem is that you data is not pass to view

Activity icon

Replied to Undefined Variable Info

@mrperfectionist

$into =Invoice::find(65)->pluck('username')->first();

then try

Activity icon

Replied to Undefined Variable Info

you forget to write

use ($info)

Mail::send(['text'=>'invoice.test'], $info, function($message) use ($info){

Activity icon

Replied to Image Upload E

@mbo

if($request->ajax()) { 
        $photo = Photo::find($request->photoId); //Get image by id or desired parameters

        if(File::exists($destinationPath.$photo->file_name)) //Check if file exists
            File::delete($destinationPath.$photo->file_name) //Delete file from storage

        $photo->delete()   //Delete file record from DB

        return response('Photo deleted', 200); //return success
    }

delete image like this or if user have those image path then remove those path from imahe column where you assign to image to user table.

Activity icon

Replied to Retrieve Images From Database

@noel First create full url then check into url(broswer like you project url) that will make sure that you are getting image or not then try it into code.

Activity icon

Replied to How Do I Pass My Controller Variable To My Routes

@nikankad What do you need could you explain it.

Dec
06
4 months ago
Activity icon

Awarded Best Reply on How To Display Dynamic Data In Datatable ?

that mean "/pg/display" you are not hiting on that url are you using full path like http://localhost/projects/pg/display do hit or not check on network ctrl+shift+i

Activity icon

Replied to How To Display Dynamic Data In Datatable ?

@van-india try this

$(document).ready(function() { $('#kt_apps_user_list_datatable').KTDatatable( { "processing": true, "serverSide": true, "ajax": { "url": "http://localhost/pgmanagment/public/pg/display", "type": "POST" success: function(data) { console.log(data); } },

    "columns": [
        { "data": "first_name" },
        { "data": "last_name" },
        ]
} );

} );

Activity icon

Replied to How To Display Dynamic Data In Datatable ?

that mean "/pg/display" you are not hiting on that url are you using full path like http://localhost/projects/pg/display do hit or not check on network ctrl+shift+i

Activity icon

Replied to CRUD Update With Random Entries

Yes you can do that why cron job

go throw link

https://laravel.com/docs/5.7/scheduling

Activity icon

Replied to How To Display Dynamic Data In Datatable ?

now check do you have data on that or not by return $view = Pg::all();

Activity icon

Replied to How To Display Dynamic Data In Datatable ?

@van-india have you check data on console

Activity icon

Replied to How To Display Dynamic Data In Datatable ?

Have you use Datatable js or css library link and check on console.log are you getting data or not

for more information check link

https://keenthemes.com/keen/?page=docs&section=datatable

Activity icon

Awarded Best Reply on My Variable Is Not Being Passed To My View

I am not sure you can send value like that

    return view('pages/pastpapers/igcse')
    ->withPaper($paper)
    ->withPastpapers($pastpapers)
    ->withItems($items)
    ->withfilter($filters);

but you can send value

 return view('pages/pastpapers/igcse',compact('paper','pastpapers','items','filters'));
or

return View::make('pages/pastpapers/igcse'')->with(['paper', $paper,]);

Dec
05
4 months ago
Activity icon

Replied to Migrate

Check you folder App\database\migration 2019_12_06_033947_create_table_page.php do you create this file you have to delete this file and create with proper with name

for more information flow link

https://laravel.com/docs/5.8/migrations#generating-migrations

Activity icon

Replied to My Variable Is Not Being Passed To My View

I am not sure you can send value like that

    return view('pages/pastpapers/igcse')
    ->withPaper($paper)
    ->withPastpapers($pastpapers)
    ->withItems($items)
    ->withfilter($filters);

but you can send value

 return view('pages/pastpapers/igcse',compact('paper','pastpapers','items','filters'));
or

return View::make('pages/pastpapers/igcse'')->with(['paper', $paper,]);

Activity icon

Awarded Best Reply on Issue With Spatie/laravel-medialibrary

@rffred Make suru are you using php latest or atleast 7.2

please check this link

https://github.com/spatie/laravel-medialibrary/issues/1567

Activity icon

Replied to Issue With Spatie/laravel-medialibrary

@rffred Make suru are you using php latest or atleast 7.2

please check this link

https://github.com/spatie/laravel-medialibrary/issues/1567

Activity icon

Replied to One To Many

yes this is right are you getting any error ??

$blog=Blog::with('comment')->get();

yes can call this into controller.

Activity icon

Replied to Check If There's One Or Any '?'

Do you want to get vale query string ??

you can check by this $title = Input::get('title');

Activity icon

Replied to Redirecting To Intended Url

@nana-odai you can replace dashboard to payment_plans

protected $redirectTo = '/payment_plans';

try this

Activity icon

Replied to Issue With Spatie/laravel-medialibrary

composer update then try again