定制 ghanem/ajaxblade 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ghanem/ajaxblade

最新稳定版本:0.2.2

Composer 安装命令:

composer require ghanem/ajaxblade

包简介

Easy AJAX with blade

README 文档

README

Installation

First, pull in the package through Composer.

"require": {
	"ghanem/ajaxblade": "0.2.*"
}

or use.

composer require ghanem/ajaxblade

if using Laravel 5, include the service provider within config/app.php.

'providers' => [
    'Ghanem\Ajaxblade\AjaxbladeServiceProvider'
];

now run this comand:

php artisan vendor:publish

Example

Within your controllers, before you perform a redirect...

public function show()
{
    $articles = Article::orderBy('id', 'DESC')->Paginate(20);

    return view('home',compact('articles'));
}

this is home view :

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
	<script src="//code.jquery.com/jquery.js"></script>
	<script src="{{ public_path('vendor/ajaxblade/ajaxblade.js') }}"></script>
</head>
<body>

<div class="container">
	
	
	<div class="abs">
		@foreach ($users as user)
			<div> $user->name </div>
		@endforeach
		@ajaxblade($users)
	</div>

</div>

</body>
</html>

统计信息

  • 总下载量: 144
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固