salomon022

php framework at trichy

Experience

1,390

0 Best Reply Awards

  • Member Since 9 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

20th June, 2018

salomon022 left a reply on Data Not Pass To Serve • 1 day ago

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 • 1 day ago

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

salomon022 started a new conversation Value Not Passed Ajax • 1 day ago

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>

9th June, 2018

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

Its working. Thank you so much Snapey.

salomon022 left a reply on Want To Access Javascript Variable Inside Laravel Function • 1 week ago

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

salomon022 left a reply on Want To Access Javascript Variable Inside Laravel Function • 1 week ago


<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 • 1 week ago

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 left a reply on Want To Access Javascript Variable Inside Laravel Function • 1 week ago

What is data.success

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

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.

23rd May, 2018

salomon022 left a reply on "Use Of Undefined Constant Inputs - Assumed 'inputs'" • 4 weeks ago

Thankyou tykus

salomon022 left a reply on "Use Of Undefined Constant Inputs - Assumed 'inputs'" • 4 weeks ago

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'" • 4 weeks ago

The HTTP status code "1" is not valid.

salomon022 left a reply on "Use Of Undefined Constant Inputs - Assumed 'inputs'" • 4 weeks ago

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'" • 4 weeks ago

 $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']]);

22nd May, 2018

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

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

10th May, 2018

salomon022 left a reply on SQLSTATE[42000]: Syntax Error Or Access Violation: 1067 Invalid Default Value For 'dates' • 1 month ago

Thank you for your kindly & timely reply.

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

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');
}

9th May, 2018

salomon022 left a reply on Class 'App\Http\Controllers\Schema' Not Found" • 1 month ago

Tthankyou ---rin4ik---

salomon022 started a new conversation Class 'App\Http\Controllers\Schema' Not Found" • 1 month ago

if (!Schema::hasTable('tblCategory')) 
        {
            return "notfound";
        }
        else
        {
            return "found";
        }

8th March, 2018

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

Thank you adamprickett

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

$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" • 3 months ago

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

9th February, 2018

salomon022 left a reply on How To Get Unique Value • 4 months ago

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 • 4 months ago

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…

8th November, 2017

salomon022 left a reply on Not Working • 7 months ago

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 • 7 months ago

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

11th October, 2017

salomon022 left a reply on Routing • 8 months ago

Route::get('users', 'UsersController', ['as' => 'admin']);

29th September, 2017

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

What version of Laravel are you on?

27th September, 2017

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

App/http/Kernal.php

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

Change

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

26th September, 2017

salomon022 left a reply on Connect To Remote MySQL Using SSL • 8 months ago

config .env file

salomon022 left a reply on Empty Value • 8 months ago

thanks for help us tisuchi & snapey,

salomon022 left a reply on Empty Value • 8 months ago

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 • 8 months ago

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 • 8 months ago

laravel insert null valu accept

23rd September, 2017

salomon022 left a reply on Send Data • 8 months ago

no different

domain

in api integration

projects

salomon022 left a reply on Send Data • 8 months ago

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 • 8 months ago

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

how to pass the data.

22nd September, 2017

salomon022 left a reply on Html Form • 8 months ago

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 • 8 months ago

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. • 8 months ago

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? • 8 months ago

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? • 8 months ago

$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/>";

}

salomon022 started a new conversation Html Array Inputs How To Show One By One Value. • 8 months ago

20th September, 2017

salomon022 started a new conversation Ajax • 9 months ago

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);

             }

19th September, 2017

salomon022 left a reply on Laravel Beautymail • 9 months ago

Thanks sutherland for your reply

salomon022 left a reply on Firebase Send Notification In Jquery • 9 months ago

this is print on console my code is wrong

salomon022 left a reply on Firebase Send Notification In Jquery • 9 months ago

Error=MissingRegistration

salomon022 started a new conversation Firebase Send Notification In Jquery • 9 months ago

what is Authorization key

$.ajax({

       type : 'POST',

       url : "https://fcm.googleapis.com/fcm/send",

      headers : {

          Authorization : 'key=' + 'AIzaSyAkHLU49UIDj7YazQ8Dn2ruMeNcyzYJfi8'

      },


      contentType : 'json',

      data : JSON.stringify({

        "to": "/topics/videos",

        "data": {

          "message": "This is push for video!"

         }


      }),

      success : function(response) {

          console.log(response);

      },
        error : function(xhr, status, error) {

          console.log(xhr.error);                   

      }

  }); 

salomon022 left a reply on Laravel Beautymail • 9 months ago

but bootstrap design not working

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.