salomon022

salomon022

php framework at trichy

Member Since 1 Year Ago

Experience Points 1,660
Experience
Level
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Answer
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.

26 Oct
1 month ago

salomon022 left a reply on 'session' Not Found

Thank you for the response.

salomon022 left a reply on 'session' Not Found

Session global variable not showing in my view page

{{session::get('user_name')}}

salomon022 started a new conversation Session' Not Found

Class 'session' not found (View: C:\xampp\htdocs\blogtow\resources\views\admin\menu.blade.php)

30 Aug
3 months ago

salomon022 started a new conversation Access-Control-Allow-Origin Error

while connecting laravel 4.2 with ionic 4.1.1 project, Getting Access-Control-Allow-Origin error in database connection. Help me in this.

25 Aug
3 months ago

salomon022 started a new conversation The Response Content Must Be A String Or Object Implementing __toString(), "boolean" Given.

MyCode

function test()
    {
        return $i =Hash::needsRehash("y9kBcLs6nQDMJc4UaHiT.sfG3HnryUu0A7jZZO67cZjI3xmD.TXO");
    }

20 Jun
5 months ago

salomon022 left a reply on Data Not Pass To Serve

now too i didn't get data. for your reference view this screen shot

https://prnt.sc/jx698x

salomon022 left a reply on Data Not Pass To Serve

I didn't get any error and no data passing through. Just showing empty space.

salomon022 started a new conversation Value Not Passed Ajax

My html Code

<form action="{{asset('menu/category')}}" class="form">
        <ul class="list-group">
        @foreach($categorys as $language)
          <li class="list-group-item"><input type="checkbox" name="categpry" value="{{$language->id}}"/> &nbsp;{{$language->name}}</li>
         @endforeach
        </ul>
        <input type="hidden" value="category" name="type">
         <center><input type="submit" value="Add Menu" class="btn btn-primary"></center>
    </form>

jquery code

<script>
    $('.form').submit(function(event)
    {
        event.preventDefault();
        var form = $(this);
        var formData = new FormData(form);
        var url = $(form).attr('action');
        alert(url);
        $.ajax({
            method: "post",
            url: url,
            data: formData,
            async: false,
            cache: false,
            contentType: false,
            processData: false,
            success: function(s){
console . log(s);
            },
            error: function(e){console.log(e);}
        });
    });
</script>
09 Jun
6 months ago

salomon022 left a reply on File Does Not Exist At Path Database\migrations\install.sql"

Its working. Thank you so much Snapey.

salomon022 left a reply on Want To Access Javascript Variable Inside Laravel Function

var element ="<img src='{{asset("upload")}}/image.jpg'/>";

salomon022 left a reply on Want To Access Javascript Variable Inside Laravel Function


<a href="{{ route("product-details")}}/'+val.id+'><button class="main-btn quick-view"><i class="fa fa-search-plus"></i> Quick view</button></a>


<img src='{{route("upload")}}/'"+img.jpg+">

img.jpg replace your image name

salomon022 left a reply on Want To Access Javascript Variable Inside Laravel Function

function rendarElements(data) {
 var element ="";
$.each($.parseJSON(data), function(key,value)
{
     var element = '<div class="col-md-4 col-sm-6 col-xs-6"><div class="product product-single"><div class="product-thumb"><div class="product-label"><span>New</span><span class="sale">-20%</span></div><a href="{{ route("product-details",'+val.id+') }}"><button class="main-btn quick-view"><i class="fa fa-search-plus"></i> Quick view</button></a><img src="{!! Storage::url("val.photo(I AM FACING PROBLEM HERE)") !!}"></div><div class="product-body"><h3 class=product-price>$'+val.price+' <del class="product-old-price">$'+val.actual_price+'</del></h3><div class="product-rating"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-o empty"></i></div><h2 class="product-name"><a href="#">'+val.product+val.id+'</a></h2><div class="product-btns">{!! Form::open(["action"=>["[email protected]",'+val.id+'],"method"=>"post"]) !!}{!! Form::hidden("type","wish") !!}<button class="main-btn icon-btn"><i class="fa fa-heart"></i></button> {!! Form::close() !!}{!! Form::open(["action"=>["[email protected]",'+val.id+'],"method"=>"post"]) !!}{!! Form::hidden("type","compare") !!}<button class="main-btn icon-btn"><i class="fa fa-exchange"></i></button>{!! Form::close() !!}{!! Form::open(["action"=>["[email protected]",'+val.id+'],"method"=>"post"]) !!}{!! Form::hidden("type","cart") !!}<button class="primary-btn add-to-cart"><i class="fa fa-shopping-cart"></i> Add to Cart</button>{!! Form::close() !!}</div></div></div></div>';
    
});
    $('#products').html(element);
               
}

salomon022 started a new conversation File Does Not Exist At Path Database\migrations\install.sql"

DB::unprepared(\File::get('database\migrations\install.sql')); The above code is working on localhost but getting error on live server (File does not exist at path database\migrations\install.sql"). I am using this code to install database during script installation on server and the database itself in same server only. Help me in this.

23 May
6 months ago

salomon022 left a reply on "Use Of Undefined Constant Inputs - Assumed 'inputs'"

return redirect('/logininstall/logininstall')->with('name',$inputs['name'])->with('gender',$inputs['gender'])->with('email', $inputs['email'])->with('password',$inputs['password'])->with('address',$inputs['address'])->with('mobile_number',$inputs['mobile'])->with('nationality', $inputs['nationality'])->with('state',$inputs['state'])->with('city', $inputs['city']);

but value not password

''' function insetAdmin() { return $value = Session::get('name'); }

display the blank page only

salomon022 left a reply on "Use Of Undefined Constant Inputs - Assumed 'inputs'"

The HTTP status code "1" is not valid.

salomon022 left a reply on "Use Of Undefined Constant Inputs - Assumed 'inputs'"

return redirect::route('/logininstall/logininstall',['name'=>$inputs['name'], 'gender'=>$inputs['gender'], 'email'=>$inputs['email'], 'password'=>$inputs['password'], 'address'=>$inputs['address'], 'mobile_number'=>$inputs['mobile'], 'nationality'=>$inputs['nationality'], 'state'=>$inputs['state'], 'city'=>$inputs['city']]);

web.php

Route::get('/logininstall/logininstall', '[email protected]');

but show error

Route [/logininstall/logininstall] not defined."

salomon022 started a new conversation "Use Of Undefined Constant Inputs - Assumed 'inputs'"

 $inputs = Input::all();


return redirect()->route('logininstall',['name'=>$inputs['name'], 'gender'=>$inputs['gender'], 'email'=>inputs['email'], 'password'=>$inputs['password'], 'address'=>$inputs['address'], 'mobile_number'=>$inputs['mobile'], 'nationality'=>$inputs['nationality'], 'state'=>$inputs['state'], 'city'=>$inputs['city']]);
22 May
6 months ago

salomon022 started a new conversation "Call To Undefined Method Illuminate\Http\File::get()"

DB::unprepared(File::get('install.sql'));

10 May
7 months ago

salomon022 started a new conversation SQLSTATE[42000]: Syntax Error Or Access Violation: 1067 Invalid Default Value For 'dates'

migrations use

my table

 public function up()
    {
        Schema::create('admin', function(Blueprint $table) {
            $table->engine = 'InnoDB';
        
            $table->integer('id');
            $table->string('name', 100);
            $table->string('gender', 100);
            $table->string('email', 100);
            $table->string('password', 100);
            $table->string('address', 100);
            $table->string('mobile_number', 100);
            $table->string('nationality', 100);
            $table->string('state', 100);
            $table->string('city', 100);
            $table->time('dates')->default(\DB::raw('CURRENT_TIMESTAMP'));
            $table->integer('admin')->default('0');
            $table->integer('active')->default('1');
        
            $table->timestamps();
        
        });
}

  public function down()
{
Schema::drop('admin');
}
09 May
7 months ago

salomon022 started a new conversation Class 'App\Http\Controllers\Schema' Not Found"

if (!Schema::hasTable('tblCategory')) 
        {
            return "notfound";
        }
        else
        {
            return "found";
        }
08 Mar
9 months ago

salomon022 left a reply on "array_push() Expects Parameter 1 To Be Array, Object Given"

$products = DB::table('product')->where('product_start_time', '<=', $now)->where('product_expiry_time', '>', $now)->get();

salomon022 started a new conversation "array_push() Expects Parameter 1 To Be Array, Object Given"

foreach($products as $product)
        {
            
            $refer = 'book';
            $refers = array();
            $refers['refer '] =$refer ;
            array_push($product,   $refers);
            return  $product;
    }
09 Feb
10 months ago

salomon022 left a reply on How To Get Unique Value

If I using DISTINCT, I shows only the result like this

Name    value
Aaa        1
Bbb    2
Ddd    3
Eee        4
Fff        5

salomon022 started a new conversation How To Get Unique Value

How to get unique value from mysql database using? This is my data….

Name Value Aaa 1 Bbb 2 Ccc 1 Ddd 3 Eee 4 Fff 5 Ggg 3

I want result like this..

Name value Bbb 2 Eee 4 Fff 5

help me…

08 Nov
1 year ago

salomon022 left a reply on Not Working

This is my route

<?php
Route::get('/', function () {
    return view('login');
});
Route::get('/{name}', '[email protected]');

This is my Controller

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use  Illuminate\Support\Facades\Session;

class adminController extends Controller
{
    public function index($data)
    {
        $active['nav'] = $data;
        return view('index', $active);
    }
    
    public function __construct()
    {
        if(Session::has('email') && Session::has('password') && Session::has('admin')&& Session::has('admin'))
        {
            Session::keep(['email', 'password', 'admin']);
        }
        else
        {
              return redirect('/');
        }
    }
}

salomon022 started a new conversation Not Working

public function __construct()
    {
        if(Session::has('email') && Session::has('password') && Session::has('admin')&&                         Session::has('admin'))
        {
            Session::keep(['email', 'password', 'admin']);
        }
        else
        {
              return redirect('/');
        }
    }

11 Oct
1 year ago

salomon022 left a reply on Routing

Route::get('users', 'UsersController', ['as' => 'admin']);
29 Sep
1 year ago
27 Sep
1 year ago

salomon022 left a reply on TokenMismatchException In VerifyCsrfToken.php (line 68) In Laravel 5.4

App/http/Kernal.php

\App\Http\Middleware\VerifyCsrfToken::class,

Change

//\App\Http\Middleware\VerifyCsrfToken::class,
26 Sep
1 year ago

salomon022 left a reply on Connect To Remote MySQL Using SSL

config .env file

salomon022 left a reply on Empty Value

thanks for help us tisuchi & snapey,

salomon022 left a reply on Empty Value

how to accept empty data field?

when i pass empty value the following error has appeared.

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'authkey' cannot be null

salomon022 left a reply on Empty Value

this is my insert query in model, input fields is empty not insert value.

public static function insert($input)
    {
        $name = $input['name'];
        $userName = $input['username'];
        $password = $input['Password'];
        $api = $input['api'];
        $senderId = $input['senderId'];
        $active = $input['active'];
        $authkey = $input['authKey'];
        $route = $input['route'];
        $campaign = $input['campaign'];
        $country = $input['country'];
        $method = $input['method'];
        $url = $input['url'];
        $active = $input['active'];
        $insert = DB::table('sms_gateway')->insertGetId(array('name'=>$name,'username'=>$userName,'password'=> $password, 'api'=> $api, 'sender_id'=> $senderId, 'active'=> $active,'authkey'=> $authkey, 'route'=> $route, 'campaign'=> $campaign, 'country'=> $country,'url'=> $url,'method' => $method));
        $insertsend = sendModel::insert($insert);
    }

salomon022 started a new conversation Empty Value

laravel insert null valu accept

23 Sep
1 year ago

salomon022 left a reply on Send Data

no different

domain

in api integration

projects

salomon022 left a reply on Send Data

not send in same url other url

ex :

http://www.test.com

to

http://www.otherurl.com

how to pass the value

salomon022 started a new conversation Send Data

send data controller to other ulr in post method, no jquery and no ajax no view form mode.

how to pass the data.

22 Sep
1 year ago

salomon022 left a reply on Html Form

this print in out put

array(3) { [0]=> string(5) "apple" [1]=> string(4) "pear" [2]=> string(6) "banana" } array(3) { [0]=> string(5) "apple" [1]=> string(4) "pear" [2]=> string(6) "banana" }

how to show this order

apple pear banana

salomon022 started a new conversation Html Form

This is my html code

controller code public function test(){

$input = Input::all();
    $i=0;
    
    foreach ($input as $inputs)
    {
        echo $inputs[$i];
        $i= $i+1;
    }

}

how to print all values in one by one ?

here my program, but it print a single value only.

salomon022 left a reply on Html Array Inputs How To Show One By One Value.

how to print all values in one by one ?

here my program, but it print a single value only.

public function test() { $input = Input::all(); $i=0;

        foreach ($input as $inputs)
        {
            echo $inputs[$i];
            $i= $i+1;
        }
    
}

salomon022 left a reply on How To Pass An Array To Ajax And Accessible In Controller?

use App\Http\otherController;

$otherController = new OtherController();

$value = $otherController->view($data);

salomon022 left a reply on How To Pass An Array To Ajax And Accessible In Controller?

$i = array(1,2,3,4,5,6,7,8,9,0);

$k =0;

foreach($i as $j)

{

$k = $k+1;

}

for($n=0; $n<$k; $n++)

{

echo $i[$n]."<br/>";

}

20 Sep
1 year ago

salomon022 started a new conversation Ajax

data: error display in my console

$data = 'name='+name;

$.ajax

     {

             url: "http://localhost/admin/getUser/getUser",

            type: 'POST',

             data: data,

             success: function(e){

                 alert (e);

                 $('#user').removeClass('hidden');

                 $('#user').html(e);

             }