我想在自定义路径中创建模型.如果我像下面这样编写php artisan命令,它将在app中创建模型.
php artisan make:model core
Run Code Online (Sandbox Code Playgroud)
但我想在自定义的Models文件夹中创建模型文件.我该怎么做 ?
当我使用 php 短开放标记用 html 编写 php 代码时,它每次都会打印 1 。
<?= include_once 'includes/footer.php';?>
Run Code Online (Sandbox Code Playgroud)
为什么会这样?
在数据表中添加任何行后,单击编辑或删除按钮不起作用。我已经用 ajax 做到了这一点。在成功函数中,我破坏了数据表。然后加载所有数据并启动dataTable。我的代码如下。
HTML代码:
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<button class="btn btn-success" title="Add Items" id="addCalzone"><i class="halflings-icon white plus"></i> Add Item</button><br/><br/>
<thead>
<tr>
<th>No.</th>
<th>Name</th>
<th>Price</th>
<th>
<div class="text-center">
Action
</div>
</th>
</tr>
</thead>
<tbody class="dataTable-tbody">
<?php foreach($row as $key => $r): ?>
<tr class="tableRow" data-id="<?= htmlentities(stripcslashes($r['id']), ENT_QUOTES, 'UTF-8'); ?>">
<td></td>
<td><?= htmlentities(stripcslashes($r['name']), ENT_QUOTES, 'UTF-8'); ?></td>
<td> $ <?= htmlentities(stripcslashes($r['price']), ENT_QUOTES, 'UTF-8'); ?></td>
<td>
<div class="text-center">
<button class="btn btn-info editCalzone" title="Edit"><i class="halflings-icon white edit"></i> Edit</button>
<button class="btn btn-danger dltCalzone" title="Delete"><i …Run Code Online (Sandbox Code Playgroud) 我想用孟加拉数字值开始有序列表,如下所示:
\n\xe0\xa7\xa7\xe0\xa5\xa4 \xe0\xa6\x86\xe0\xa6\xae \n\xe0\xa7\xa8\xe0\xa5\xa4 \xe0\xa6\x9c\xe0\xa6\xbe\xe0\xa6\xae \n\xe0\xa7\xa9\xe0\xa5\xa4 \xe0\xa6\x95\xe0\xa6\xbe\xe0\xa6\x81\xe0\xa6\xa0\xe0\xa6\xbe\xe0\xa6\xb2 \n\xe0\xa7\xaa\xe0\xa5\xa4 \xe0\xa6\xb2\xe0\xa6\xbf\xe0\xa6\x9a\xe0\xa7\x81\nRun Code Online (Sandbox Code Playgroud)\n谁能帮我解决这个问题吗?
\n我需要一个PHP的正则表达式模式.它只接受以下两种模式.
XXXX-XXXX-2
XXXX-XXX-3
Run Code Online (Sandbox Code Playgroud)
这里,X =数字
例如,它会接受,
1111-1111-2
1234-567-3
7894-753-2
5287-6325-3
Run Code Online (Sandbox Code Playgroud)
但它不会接受,
526-5248-2
7895-4125-1
7854-856-4
asas-wewe-y
Run Code Online (Sandbox Code Playgroud)
等等.
这种模式的正则表达式是什么?